Changing MatrixSpace Basis?

asked 2019-04-12 06:44:28 +0100

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 16:14:19 +0100 )edit

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

o6p gravatar imageo6p ( 2019-04-14 20:25:54 +0100 )edit