Changing MatrixSpace Basis?

asked 2019-04-11 23:44:28 -0500

o6p gravatar image
V = (MatrixSpace(SR, 2, 2))
W = V.subspace_with_basis(
    [
        matrix([[1,1],[1,1]]),
        matrix([[1,0],[pi,1]]),
        matrix([[0,7],[8,9]]),
        matrix([[1,0],[0,-1]])
    ]
)
var('a', 'b','c', 'd')
W.coordinate_vector(matrix([[a+b,a+b],[c+d,c+d]]))

This doesn't work

edit retag flag offensive close merge delete

Comments

The method subspace_with_basis does not exist for matrix spaces in SageMath 8.7. Which version of SageMath are you using?

eric_g gravatar imageeric_g ( 2019-04-12 09:14:19 -0500 )edit

I am using 8.7. How do I go about doing this then?

o6p gravatar imageo6p ( 2019-04-14 13:25:54 -0500 )edit