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@
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
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.