Click or drag to resize

DoubleComplexMatrix(Int32, Int32, DoubleComplexDataBlock, Int32, Int32) Constructor

Constructs a DoubleComplexMatrix instance from a data block with the given row and column strides.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleComplexMatrix(
	int rows,
	int cols,
	DoubleComplexDataBlock data,
	int rowStride,
	int colStride
)

Parameters

rows  Int32
The number of rows.
cols  Int32
The number of cols.
data  DoubleComplexDataBlock
A data block.
rowStride  Int32
The distance between consecutive row elements.
colStride  Int32
The distance between consecutive column elements.
Exceptions
ExceptionCondition
MismatchedSizeException Thrown if data.Length != rows * cols.
Remarks
No data is copied. The new matrix references the given data block. The data for the matrix is laid out in a linear array. Two common ways of doing this are: column major - matrix is laid out column by column. In this case the row stride would be equal to 1 and the column stride would be equal to the number of rows. row major - matrix is laid out row by row. In this case the column stride would be equal to 1 and the row stride would be equal to the number of columns. This constructor allows for the explicit specification of the strides. Useful if the layout is neither column nor row major.
See Also