Synopsis:
i1 : R = ZZ[a..c]; |
i2 : f = map(R^3,R^{0,-1,-2},(i,j) -> R_i^j) |
We specified the degrees of the source basis elements explicitly to ensure the matrix would be homogeneous.
i3 : isHomogeneous f |
We could have let Macaulay2 take care of that for us, by replacing the source module by its desired rank.
i4 : g = map(R^3,3,(i,j) -> R_i^j) |
i5 : degrees g |
i6 : isHomogeneous g |
Another way would be to let matrix take care of that for us.
i7 : h = matrix table(3,3,(i,j) -> R_i^j) |
i8 : degrees h |
i9 : isHomogeneous h |
Code:
-- ../../../Macaulay2/m2/matrix1.m2:12-14 map(Module,Module,Function) := Matrix => options -> (M,N,f) -> ( map(M,N,table(numgens M, numgens N, f)) )