Click or drag to resize

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.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public 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

MatrixT
A matrix with a type that can represent and is closest to both provided samples and the dimensions of example.
See Also