> > > Sage's MatrixSpace and matrix don't have support for this. > > > numpy (which you get via "import numpy") might have support > > > for numerical matrices like this. > > > CVXOPT also has support for this: > >http://abel.ee.ucla.edu/cvxopt/examples/short-examples/creating-matri... > > And, just to be clear, CVXOPT is standard in Sage. > > There are a number of caveats though. Currently you really have to switch > to python mode to create a cvxopt matrix in Sage, probably because of > preparser issues (see below). Also, more importantly, it looks to me > like making a matrix from matrices in CVXOPT does *not* make a matrix > with matrix entries, but instead makes a single matrix -- see below.
That is true; CVXOPT only supports 2-D numerical matrices, whereas Numpy supports N-D arrays of general objects. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---