| DoubleMatrix(Int32, Int32, DoubleDataBlock) Constructor |
Constructs a DoubleMatrix instance from a data block.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleMatrix(
int rows,
int cols,
DoubleDataBlock data
)
Public Sub New (
rows As Integer,
cols As Integer,
data As DoubleDataBlock
)
public:
DoubleMatrix(
int rows,
int cols,
DoubleDataBlock^ data
)
new :
rows : int *
cols : int *
data : DoubleDataBlock -> DoubleMatrix
Parameters
- rows Int32
- The number of rows.
- cols Int32
- The number of cols.
- data DoubleDataBlock
- A data block.
Exceptions Remarks
No data is copied. The new matrix references the given data block.
Example
This code creates a DoubleMatrix that references a one-dimensional
array
array with
12 elements:
DoubleDataBlock data = new DoubleDataBlock( array, 0 );
DoubleMatrix A = new DoubleMatrix( 4, 3, data );
See Also