Click or drag to resize

MatrixMathToMatrixWithOneRowT Method

Wraps an array, 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.3261.0 (4.8.3261.0)
Syntax
C#
public static IMatrix<T> ToMatrixWithOneRow<T>(
	T[] vector
)
where T : struct, new()

Parameters

vector  T
The array to wrap.

Type Parameters

T
Type of elements

Return Value

IMatrixT
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. This is also true for the opposite process: if the data of the matrix change, the changes are reflected in the provided array.
See Also