powered by
Create empty 0x0 matrices of varying types
EmptyMatrix(repr = "C", type = "d")
A 0x0 matrix of the specified representation and type
Representation of empty matrix; choose from:
“C” for a CsparseMatrix
C
CsparseMatrix
“T” for a TsparseMatrix
T
TsparseMatrix
“R” for an RsparseMatrix
R
RsparseMatrix
“e” for an unpackedMatrix
e
unpackedMatrix
“d” for a dense S3 matrix
d
matrix
“spam” for a spam matrix
spam
Type of resulting matrix to return, choose from:
“d” for numeric matrices
“l” for logical matrices
l
“n” for pattern matrices
n
Note, when repr is “spam”, type must be “d”; when repr is “d”, setting type to “n” returns a logical matrix
repr
type
IsMatrixEmpty()
EmptyMatrix() EmptyMatrix("spam")
Run the code above in your browser using DataLab