First time here? Check out the FAQ!
answered 2022-08-02 05:42:14 +0100
You can flatten the matrices and use the same .linear_dependence method:
.linear_dependence
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())])