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.
Arguments
- type
An
r8_field_typeof a scalar type, oroption()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, andncol.
Examples
type_matrix(option(type_double()), nrow = 2L)#> <r8 field type> matrix of optional double with 2 rows