Click or drag to resize

FloatMatrix(Int32, Int32, Single, StorageType) Constructor

Constructs a FloatMatrix instance of the specified dimensions, initialized with the values in a given array.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public FloatMatrix(
	int rows,
	int cols,
	float[] data,
	StorageType storage
)

Parameters

rows  Int32
The number of rows.
cols  Int32
The number of columns.
data  Single
An array containing data values.
storage  StorageType
The storage scheme: row-major order or column-major order.
Remarks
The data in the array may be laid out row by row, or column by column.
If there are fewer data values than matrix elements, the remaining matrix elements are set to zero. If there are more data values than matrix elements, the extra data values are ignored.
Data is copied. To construct a matrix from a one-dimensional array without copying data, see the constructor that takes a data block, FloatMatrix(Int32, Int32, FloatDataBlock).
See Also