|
MatrixSquareT Method
|
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[,] Square<T>(
int size,
T value
)
Public Shared Function Square(Of T) (
size As Integer,
value As T
) As T(,)
Request Example
View SourceParameters
- size
- Type: SystemInt32
The number of rows and columns in the matrix. - value
- Type: T
The initial values for the matrix.
Type Parameters
- T
Return Value
Type:
TA matrix of the specified size.
See Also