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.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax 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
IMatrixTA 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