Click or drag to resize

MatrixMathToMatrixT(T) Method

Converts a 2D array of type T[,] to a read-write matrix of type IMatrix{T}.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static IMatrix<T> ToMatrix<T>(
	this T[,] array
)
where T : struct, new()

Parameters

array  T
The 2D array to convert.

Type Parameters

T
The type of the elements in the 2D array.

Return Value

IMatrixT
A read-write matrix that wraps the 2D array.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also