Click or drag to resize
Accord.NET (logo)

VectorOnesT Method (Int32)

Creates a zero-valued vector.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static T[] Ones<T>(
	int size
)
where T : struct, new()
Request Example View Source

Parameters

size
Type: SystemInt32
The number of elements in the vector.

Type Parameters

T
The type of the vector to be created.

Return Value

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