[sage-support] Re: Digamma Function in 4.1.1
On Sep 19, 10:33 am, Burcin Erocal wrote: > On Fri, 18 Sep 2009 15:47:45 -0700 (PDT) > > Defining a function psi, similar to the way arctan2 is defined in line > 422 of sage/functions/trig.py should fix this. What is the location from Sage's root directory of the files used by Sage? I found several locations of sage/functions/trig.py. I found in the pdf of the reference manual that psi can be numerically calculated by using PARI (for example, pari(2.2342).psi()), but it still cannot be used symbolically or used to plot until the function psi is defined. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sparse linear algebra
I made a tiny one line patch, it would be nice of view to review it. http://sagetrac.org/sage_trac/ticket/6968 Yann Results after patching: sage: m=identity_matrix(1000,sparse=True) sage: v=vector([1]*1000,sparse=True) sage: time p = v*m CPU times: user 0.20 s, sys: 0.00 s, total: 0.20 s Wall time: 0.21 s sage: v=matrix(1,1000,[1]*1000,sparse=True) sage: time p = v*m CPU times: user 0.35 s, sys: 0.00 s, total: 0.35 s Wall time: 0.35 s On 20 sep, 21:55, Craig Citro wrote: > > Is there a good reason for such a difference? > > I think the only reason is that the vector code in Sage hasn't > received much attention over the years. William and I talked about > this a while back, and basically agreed that it would be best to > rewrite most of the vector classes as a *very* light wrapper around > matrices of size 1xn or nx1. This is one of the projects I'm planning > on taking care of in the Fall, so if anyone has any thoughts or > suggestions, please pipe in! > > -cc --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sparse linear algebra
> Is there a good reason for such a difference? > I think the only reason is that the vector code in Sage hasn't received much attention over the years. William and I talked about this a while back, and basically agreed that it would be best to rewrite most of the vector classes as a *very* light wrapper around matrices of size 1xn or nx1. This is one of the projects I'm planning on taking care of in the Fall, so if anyone has any thoughts or suggestions, please pipe in! -cc --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] sparse linear algebra
Is there a good reason for such a difference? sage: m=identity_matrix(1000,sparse=True) sage: v=vector([1]*1000,sparse=True) sage: time p = v*m CPU times: user 2.26 s, sys: 0.00 s, total: 2.26 s Wall time: 2.26 s sage: v=matrix(1,1000,[1]*1000,sparse=True) sage: time p = v*m CPU times: user 0.36 s, sys: 0.00 s, total: 0.36 s Wall time: 0.37 s --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Building problems on ArchLinux
Well, building from sources solves the problem. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---