From 823dcc730b55cf40986a3af244a143f0c5a5cb21 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 13 Sep 2020 16:32:43 -0400 Subject: [PATCH] mjo/matrix_vector: fix phi_inv implementation in basis_representation(). --- mjo/matrix_vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.44.2