Skip to contents

A dense matrix of a scalar type, an atomic vector with dim in R; with of, a matrix whose columns are the fields of a struct, all of one scalar type.

Usage

type_matrix(type = NULL, nrow = NULL, ncol = NULL, of = NULL)

Arguments

type

An r8_field_type of a scalar type, or option() of one for missing cells.

nrow

Optional Integer: The number of rows.

ncol

Optional Integer: The number of columns.

of

Optional R8 struct type: The struct whose fields are the columns, in place of type, nrow, and ncol.

Value

An r8_field_type.

Examples

type_matrix(option(type_double()), nrow = 2L)
#> <r8 field type> matrix of optional double with 2 rows