Click or drag to resize
Accord.NET (logo)

JaggedOnesT Method (Int32, Int32)

Creates a zero-valued matrix.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static T[][] Ones<T>(
	int rows,
	int columns
)
where T : struct, new()
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.

Type Parameters

T
The type of the matrix to be created.

Return Value

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