| 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleComplexMatrix(
int rows,
int cols,
DoubleComplexDataBlock data,
int rowStride,
int colStride
)
Public Sub New (
rows As Integer,
cols As Integer,
data As DoubleComplexDataBlock,
rowStride As Integer,
colStride As Integer
)
public:
DoubleComplexMatrix(
int rows,
int cols,
DoubleComplexDataBlock^ data,
int rowStride,
int colStride
)
new :
rows : int *
cols : int *
data : DoubleComplexDataBlock *
rowStride : int *
colStride : int -> DoubleComplexMatrix
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 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