NewLazyMatrix: Return an empty LazyMatrix.

View source: R/MatrixLazyEval_core.R

NewLazyMatrixR Documentation

Return an empty LazyMatrix.

Description

Return an empty LazyMatrix.

Usage

NewLazyMatrix(components, dim, eval_rule, test = T)

Arguments

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 make.names to them.

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.

Details

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.


ekernf01/MatrixLazyEval documentation built on July 24, 2022, 2:42 a.m.