Click or drag to resize

MatrixBuilderTSparseDiagonal(Int32, T) Method

Create a new diagonal sparse matrix and initialize each diagonal value to the same provided value.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public Matrix<T> SparseDiagonal(
	int order,
	T value
)

Parameters

order  Int32
The order (number of rows and columns) of the matrix.
value  T
The value to initialize each diagonal element to.

Return Value

MatrixT
The created matrix.
See Also