Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Matrix dimensions being symbolic

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)