Is there any way to define a matrix in sage that has variables in place for the dimensions?
For instance, I want M with dimension n by p. I try the code below to illustrate
sage: var('n p')
sage: matrix(nrows=n,ncols=p)
| 1 | initial version |
Is there any way to define a matrix in sage that has variables in place for the dimensions?
For instance, I want M with dimension n by p. I try the code below to illustrate
sage: var('n p')
sage: matrix(nrows=n,ncols=p)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.