Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can flatten the matrices and use the same .linear_dependence method:

m1 = Matrix(QQ, [[0,1],[2,3]])
m2 = Matrix(QQ, [[0,2],[4,6]])
V = QQ^4
V.linear_dependence([vector(m1.list()), vector(m2.list())])