Learn R Programming

m2r (version 1.0.3)

m2_matrix: Create a new matrix in Macaulay2

Description

Create a new matrix in Macaulay2

Usage

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)

Value

an object of class m2_matrix

Arguments

mat

a matrix

ring

a ring containing the matrix entries

name

the m2_name of the object, which is it's name on the M2 side

code

return only the M2 code? (default: FALSE)

x

formal argument for print method

...

...