Click or drag to resize

MatrixMathToROMatrixWithOneRowT Method

Wraps a read-only vector, so that it becomes a matrix with one row, and as many columns as elements in the vector.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IROMatrix<T> ToROMatrixWithOneRow<T>(
	IReadOnlyList<T> vector
)
where T : struct, new()

Parameters

vector  IReadOnlyListT
The vector to wrap.

Type Parameters

T
Type of elements

Return Value

IROMatrixT
A wrapper that appears as a matrix with one row, and as many columns as elements in the wrapped vector.
Remarks
Only a wrapper is returned, thus if the data of the vector change, the changes are reflected in the returned matrix.
See Also