X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Fmatrix_vector.py;fp=mjo%2Fmatrix_vector.py;h=055e4aa9d62dd40b6bf082b19bfb0aa2f199444d;hb=7a56ac05363d194c6b7c47d7ae51321df5d8ad1f;hp=49d112a9f832e8849428abab5955a9f779d884d2;hpb=442ca575b029c244e7307b502b63d11611dc205b;p=sage.d.git diff --git a/mjo/matrix_vector.py b/mjo/matrix_vector.py index 49d112a..055e4aa 100644 --- a/mjo/matrix_vector.py +++ b/mjo/matrix_vector.py @@ -25,7 +25,11 @@ def isomorphism(matrix_space): The inverse mapping ``phi_inverse`` will go the other way. - EXAMPLES: + SETUP:: + + sage: from mjo.matrix_vector import isomorphism + + EXAMPLES:: sage: M = MatrixSpace(QQ,4,4) sage: (p, p_inv) = isomorphism(M) @@ -72,6 +76,10 @@ def matrix_of_transformation(T, V): matrix that represents ``T`` with respect to the standard basis of ``V``. + SETUP:: + + sage: from mjo.matrix_vector import isomorphism, matrix_of_transformation + EXAMPLES: The matrix of a transformation on a simple vector space should be @@ -116,7 +124,7 @@ def matrix_of_transformation(T, V): """ n = V.dimension() - B = V.basis() + B = list(V.basis()) def inner_product(v, w): # An inner product function that works for both matrices and