Click or drag to resize

DiagonalMatrixOfDiagonal Method

Create a new diagonal matrix and initialize each diagonal value from the provided enumerable. This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the matrix.

Namespace: Altaxo.Calc.LinearAlgebra.Single
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static DiagonalMatrix OfDiagonal(
	int rows,
	int columns,
	IEnumerable<float> diagonal
)

Parameters

rows  Int32

[Missing <param name="rows"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Single.DiagonalMatrix.OfDiagonal(System.Int32,System.Int32,System.Collections.Generic.IEnumerable{System.Single})"]

columns  Int32

[Missing <param name="columns"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Single.DiagonalMatrix.OfDiagonal(System.Int32,System.Int32,System.Collections.Generic.IEnumerable{System.Single})"]

diagonal  IEnumerableSingle

[Missing <param name="diagonal"/> documentation for "M:Altaxo.Calc.LinearAlgebra.Single.DiagonalMatrix.OfDiagonal(System.Int32,System.Int32,System.Collections.Generic.IEnumerable{System.Single})"]

Return Value

DiagonalMatrix

[Missing <returns> documentation for "M:Altaxo.Calc.LinearAlgebra.Single.DiagonalMatrix.OfDiagonal(System.Int32,System.Int32,System.Collections.Generic.IEnumerable{System.Single})"]

See Also