View source: R/MatrixLazyEval_core.R
NewLazyMatrix | R Documentation |
Return an empty LazyMatrix.
NewLazyMatrix(components, dim, eval_rule, test = T)
components |
Named list containing matrices. Anything with a matrix multiplication operator ought to work.
Notably, you can put another instance of LazyMatrixEval.
Names must come out unscathed when you do |
dim |
Length-2 integer vector giving dimensions of final object. |
eval_rule |
Length-1 character describing how to compute Mx or yM for this matrix (M) given x or y. |
test |
Logical. If TRUE (default), object is tested immediately upon initialization. |
eval_rule may only contain 'LEFT', 'RIGHT', names in 'components', and simple arithmetic
operations ( ) t - * + %*%
.
'LEFT' and 'RIGHT' specify the interface with the outside world: if your object is M and you perform M %*% x
,
then the value of x is substituted into RIGHT (and an identity matrix for LEFT).
Like with typical R syntax, asterisk (*) means componentwise multiplication, and wrapped in percents
(%*%
) it means matrix multiplication.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.