Click or drag to resize

CreateMatrixSameAsT(MatrixT, MatrixT, Int32, Int32, Boolean) Method

Create a new matrix with a type that can represent and is closest to both provided samples.

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,
	int rows,
	int columns,
	bool fullyMutable = false
)
where T : struct, new(), IEquatable<T>, IFormattable

Parameters

example  MatrixT
The first example.
otherExample  MatrixT
The second example.
rows  Int32
The number of rows.
columns  Int32
The number of columns.
fullyMutable  Boolean  (Optional)
True if the matrix should be fully mutable, false if it can be immutable.

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.
See Also