Click or drag to resize
Accord.NET (logo)

MatrixCreateT Method (Int32, Int32, T)

Creates a matrix with all values set to a given value.

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

Parameters

rows
Type: SystemInt32
The number of rows in the matrix.
columns
Type: SystemInt32
The number of columns in the matrix.
value
Type: T
The initial values for the vector.

Type Parameters

T

Return Value

Type: T
A matrix of the specified size.
See Also