Click or drag to resize

MatrixMathToROMatrixT(T) Method

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

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static IROMatrix<T> ToROMatrix<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

IROMatrixT
A read-only 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