Click or drag to resize

FloatMatrix(Int32, Int32, FloatDataBlock) Constructor

Constructs a FloatMatrix instance from a data block.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public FloatMatrix(
	int rows,
	int cols,
	FloatDataBlock data
)

Parameters

rows  Int32
The number of rows.
cols  Int32
The number of cols.
data  FloatDataBlock
A data block.
Exceptions
ExceptionCondition
MismatchedSizeException Thrown if data.Length != rows * cols.
Remarks
No data is copied. The new matrix references the given data block.
Example
This code creates a FloatMatrix that references a one-dimensional array array with 12 elements:
C#
FloatDataBlock data = new FloatDataBlock( array, 0 );
FloatMatrix A = new FloatMatrix( 4, 3, data );
See Also