Initializes either a ColumnLinkedMatrix or RowLinkedMatrix instance of certain dimensions with a configurable number and type of nodes.

Share:

Description

Initializes either a ColumnLinkedMatrix or RowLinkedMatrix instance of certain dimensions with a configurable number and type of nodes.

Usage

1
LinkedMatrix(nrow, ncol, nNodes, linkedBy, nodeInitializer, ...)

Arguments

nrow

The number of rows.

ncol

The number of columns.

nNodes

The number of nodes.

linkedBy

Whether the matrix is linked by rows or columns.

nodeInitializer

The name of a function or a function with four parameters nodeIndex, ncol, nrow, and ... that initializes each node by returning a matrix-like object Pre-defined node initializers include matrixNodeInitializer to initialize matrices and ffNodeInitializer to initialize ff objects.

...

Additional arguments passed into nodeInitializer.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.