|
JaggedCreateT Method (Int32, Int32, T, Boolean)
|
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[][] values,
bool transpose = false
)
Public Shared Function Create(Of T) (
rows As Integer,
columns As Integer,
values As T()(),
Optional transpose As Boolean = false
) As T()()
Request Example
View SourceParameters
- rows
- Type: SystemInt32
The number of rows in the matrix. - columns
- Type: SystemInt32
The number of columns in the matrix. - values
- Type: T
The initial values for the matrix. - transpose (Optional)
- Type: SystemBoolean
Whether to transpose the matrix when copying or not. Default is false.
Type Parameters
- T
Return Value
Type:
TA matrix of the specified size.
See Also