Synopsis:
v_i -- produce the i-th entry of a vector or module element v.
i1 : R = ZZ/101[a..f] |
i2 : v = vector {a,b,c} |
i3 : v_1 |
See also:
Code:
-- ../../../Macaulay2/m2/modules.m2:259-265 Vector _ ZZ := (v,i) -> ( M := class v; R := ring M; n := numgens ambient M; if i < 0 or i >= n then error "subscript out of range for vector"; sendgg( ggPush v, ggINT, gg i, ggelem); new R)