On Aug 17, 5:45 pm, Dan Drake <dr...@kaist.edu> wrote: > On Wed, 17 Aug 2011 at 10:36AM -0500, Jason Grout wrote: > > Note that "matrix" below is the *scipy* matrix command, since -pylab > > overwrote Sage's matrix command. However, matrix multiplication works > > naturally below, and the matrix-creating command uses matlab-like > > syntax. > > > sage: a=matrix("1 2 3; 4 5 6; 7 8 9") > > sage: a > > matrix([[1, 2, 3], > > [4, 5, 6], > > [7, 8, 9]]) > > sage: b=a*a.T > > sage: eig(b) > > (array([ 2.83858587e+02, 1.14141342e+00, -1.90551232e-15]), > > matrix([[-0.21483724, -0.88723069, 0.40824829], > > [-0.52058739, -0.24964395, -0.81649658], > > [-0.82633754, 0.38794278, 0.40824829]])) > > > One conclusion: we should make Sage's matrix command accept a string > > like the above example and parse it as matlab would. > > This is now #11699:http://trac.sagemath.org/sage_trac/ticket/11699 > > I agree with Rob; this probably should be in matrix(), and not in the > preparser. > > Dan > > -- > --- Dan Drake > ----- http://mathsci.kaist.ac.kr/~drake > ------- > > signature.asc > < 1KViewDownload
-- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org