From: Michael Orlitzky Date: Sun, 13 Sep 2020 20:32:43 +0000 (-0400) Subject: mjo/matrix_vector: fix phi_inv implementation in basis_representation(). X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=823dcc730b55cf40986a3af244a143f0c5a5cb21;p=sage.d.git mjo/matrix_vector: fix phi_inv implementation in basis_representation(). --- 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)