|
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()
Public Shared Function Ones(Of T As {Structure, New}) (
size As Integer
) As T()
Request Example
View SourceParameters
- size
- Type: SystemInt32
The number of elements in the vector.
Type Parameters
- T
- The type of the vector to be created.
Return Value
Type:
TA vector of the specified size.
See Also