X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Fmatrix_vector.py;fp=mjo%2Fmatrix_vector.py;h=62b75fd43e2299d605d7000f7c741af6e1bf6690;hb=823dcc730b55cf40986a3af244a143f0c5a5cb21;hp=4b4818df133a54fc16c6cf7e22b9a0e8eda87796;hpb=a3b94d0fdb734aeb91875d2a2ceaece99d129934;p=sage.d.git diff --git a/mjo/matrix_vector.py b/mjo/matrix_vector.py index 4b4818d..62b75fd 100644 --- a/mjo/matrix_vector.py +++ b/mjo/matrix_vector.py @@ -121,7 +121,7 @@ def basis_representation(M): `M` or the span of `M` (depending on whether or not ``M`` is a ``MatrixSpace`` or a basis). """ - return sum( Y[i]*basis[i] for i in range(len(Y)) ) + return basis_space.linear_combination( zip(Y,basis) ) return (phi, phi_inv)