[sage-support] Re: side effect problem of numpy.dot with Integer and QQ arrays.

2007-11-02 Thread Manny
f columns or rows, extracting a submatrix defined by lists of row and column indeces and permuting the rows and columns on the basis of a permutation given as a list of indeces. Best, Manny --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@

[sage-support] Re: side effect problem of numpy.dot with Integer and QQ arrays.

2007-10-31 Thread Manny
we > could add it to Sage. Thanks for your info and help. I want to use the flexible indexing and array shaping capabilities of numpy. If there is a way to do general arrays and associated indexing, reshaping, contraction, etc. directly, that

[sage-support] side effect problem of numpy.dot with Integer and QQ arrays.

2007-10-28 Thread Manny
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.