| 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())])
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.