MatrixMathToRODiagonalMatrixT Method |
Wraps a read-only vector to a read-only diagonal matrix.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static IROMatrix<T> ToRODiagonalMatrix<T>(
IReadOnlyList<T> vector,
int vectoroffset,
int matrixdimensions
)
where T : struct, new()
Parameters
- vector IReadOnlyListT
- The vector to wrap.
- vectoroffset Int32
- The index of the vector that is the first matrix element(0,0).
- matrixdimensions Int32
- The number of rows = number of columns of the diagonal matrix.
Type Parameters
- T
- The element type of the matrix.
Return Value
IROMatrixTA read-only diagonal matrix view over the specified vector segment.
See Also