qgen.element: Creates a value to be used in a matric.

Description Usage Arguments Details Value

Description

Creates a value for (row, col) such that value = row * ncol + col.

Usage

1
2
3

Arguments

value

the value to be placed on the diagonal.

orelse

the value to be placed everwhere else.

Details

The default implementation returns the row * number of columns plus the column number.

The diagonal implementation returns a matrix with the given value on the diagonal.

Value

a value representing the row * ncol + col.


RlonRyan/QuikR documentation built on May 14, 2019, 3:09 a.m.