Create a new matrix in Macaulay2
m2_matrix(mat, ring, name, code = FALSE)m2_matrix.(mat, ring, name, code = FALSE)
m2_numrows(x, code = FALSE, ...)
m2_numcols(x, code = FALSE, ...)
m2_length(x, code = FALSE, ...)
# S3 method for m2_map
m2_parse_function(x)
# S3 method for m2_matrix
print(x, ...)
# S3 method for m2_image
m2_parse_function(x)
# S3 method for m2_image
print(x, ...)
m2_kernel(mat, name, code = FALSE)
m2_kernel.(mat, name, code = FALSE)
an object of class m2_matrix
a matrix
a ring containing the matrix entries
the m2_name
of the object, which is it's name
on the M2 side
return only the M2 code? (default: FALSE
)
formal argument for print method
...