Matrix.CreateRandom(Int32, Int32, ArrayMutability) Method

Constructs a new matrix with uniform random numbers between 0 and 1.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static DenseMatrix<double> CreateRandom(
	int rowCount,
	int columnCount,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

rowCount  Int32
The number of rows in the new matrix.
columnCount  Int32
The number of columns in the new matrix.
mutability  ArrayMutability  (Optional)
Specifies how the matrix's values may be changed. The default is mutable values.

Return Value

DenseMatrix<Double>
A DenseMatrix<T>.

Exceptions

ArgumentOutOfRangeException

rowCount is less than zero.

-or-

columnCount is less than zero.

See Also