Click or drag to resize
Accord.NET (logo)

MatrixDiagonalT Method (Int32, Int32, T)

Returns a matrix with a vector of values on its diagonal.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static T[,] Diagonal<T>(
	int rows,
	int cols,
	T[] values
)
Request Example View Source

Parameters

rows
Type: SystemInt32
cols
Type: SystemInt32
values
Type: T

Type Parameters

T

Return Value

Type: T
See Also