Matrix<T> Constructor
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Matrix<T>(SerializationInfo, StreamingContext) |
Constructs a new matrix from serialization values.
Obsolete. |
Matrix<T>(Int32, Int32, ArrayAttributes) | Constructs a new matrix of the specified dimensions. |
Matrix<T>(Int32, Int32, TransposeOperation, ArrayAttributes) | Constructs a new matrix of the specified dimensions, taking into account a possible transposition. |
Matrix<T>(SerializationInfo, StreamingContext)
Constructs a new matrix from serialization values.
[ObsoleteAttribute(DiagnosticId = "SYSLIB0051")]
protected Matrix(
SerializationInfo info,
StreamingContext context
)
Parameters
- info SerializationInfo
- The values needed to serialize or deserialize the Matrix<T>.
- context StreamingContext
- The source and destination of a given serialized stream.
Remarks
This constructor is called internally by the .NET framework when a Matrix<T> is deserialized.
Matrix<T>(Int32, Int32, ArrayAttributes)
Constructs a new matrix of the specified dimensions.
protected Matrix(
int rowCount,
int columnCount,
ArrayAttributes attributes
)
Parameters
- rowCount Int32
- The number of rows.
- columnCount Int32
- The number of columns.
- attributes ArrayAttributes
- The attributes of the new matrix.
Exceptions
Argument | rowCount is less than zero. -or- columnCount is less than zero. |
Matrix<T>(Int32, Int32, TransposeOperation, ArrayAttributes)
Constructs a new matrix of the specified dimensions,
taking into account a possible transposition.
protected Matrix(
int rowCount,
int columnCount,
TransposeOperation transposeOperation,
ArrayAttributes attributes
)
Parameters
- rowCount Int32
- The number of rows before applying transposeOperation.
- columnCount Int32
- The number of columns before applying transposeOperation.
- transposeOperation TransposeOperation
- The operation to perform on the dimensions of the matrix.
- attributes ArrayAttributes
- The attributes of the new matrix.
Exceptions
Argument | rowCount is less than zero. -or- columnCount is less than zero. |