Synopsis:
f_{i,j,k,...} -- produce the submatrix of a matrix f consisting of columns numbered i, j, k, ... .
Repetitions of the indices are allowed.
If the list of column indices is a permutation of 0 .. n-1, where n is the number of columns, then the result is the corresponding permutation of the columns of f.
i1 : R = ZZ/101[a..f]; |
i2 : p = matrix {{a,b,c},{d,e,f}} |
i3 : p_{1} |
i4 : p_{1,1,2} |
i5 : p_{2,1,0} |
See also:
Code:
-- ../../../Macaulay2/m2/matrix.m2:404-408 Matrix _ List := Matrix => (f,v) -> ( v = splice v; listZ v; submatrix(f,v) )