CreateMatrixSameAsT(MatrixT, MatrixT) Method |
Create a new matrix with a type that can represent and is closest to both provided samples and the dimensions of example.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static Matrix<T> SameAs<T>(
Matrix<T> example,
Matrix<T> otherExample
)
where T : struct, new(), IEquatable<T>, IFormattable
Parameters
- example MatrixT
- The first example.
- otherExample MatrixT
- The second example.
Type Parameters
- T
- The element type of the matrix to create.
Return Value
MatrixTA matrix with a type that can represent and is closest to both provided samples and the dimensions of example.
See Also