In sage, the arguments of numpy.dot can be changed when they shouldn't. The following illustrates the problem:
import numpy as npy # With sage.rings.integer.Integer: x = npy.array([1]) print x # [1] npy.dot(x, npy.array([0])) print x # [0] # This also happens with QQ arrays, but not # with any of the finite fields I tried. y = MatrixSpace(QQ,2).identity_matrix().numpy() print y # [[1 0] [0 1]] npy.dot(y, npy.array(VectorSpace(QQ,2).basis()[0])) print y # [[1 0] [0 0]] I am using SAGE version 2.8.7. Explanations and workarounds are appreciated. Manny --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---