Rev Language Reference


matrix - Matrix

Create matrix object.

Usage

matrix(Real[][] x)

Arguments

x : Real[][] (pass by const reference)
x

Return Type

Details

This function creates a matrix object from a vector of vectors.

Example

# create set of real numbers to convert to matrix
x <- [[1, 1], [1, 1]]
# convert x to matrix object
y <- matrix(x)

See Also