Click or drag to resize
Accord.NET (logo)

MatrixCreate Method (Type, Int32)

Creates a jagged 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 Array Create(
	Type elementType,
	params int[] shape
)
Request Example View Source

Parameters

elementType
Type: SystemType
The type of the elements to be contained in the matrix.
shape
Type: SystemInt32
The number of dimensions that the matrix should have.

Return Value

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