Skip to main content

set_random

Method of ComplexMatrix.

Overloads

NameDescription
set_random(RandomGenerator generator) -> ComplexMatrixSets all elements of the ComplexMatrix lhs to random values on the interval [0, 1].
set_random() -> ComplexMatrixSets all elements of the ComplexMatrix lhs to random values on the interval [0, 1].
set_random(Distribution distribution) -> ComplexMatrixSets all elements of the ComplexMatrix lhs to be populated by the given distribution.
set_random(Distribution distribution, RandomGenerator generator) -> ComplexMatrixSets all elements of the ComplexMatrix lhs to be populated by the given distribution.

set_random(RandomGenerator generator) -> ComplexMatrix

Sets all elements of the ComplexMatrix lhs to random values on the interval [0, 1].

Parameters

  • generator: A random number generator used to populate the matrix.

set_random() -> ComplexMatrix

Sets all elements of the ComplexMatrix lhs to random values on the interval [0, 1].

set_random(Distribution distribution) -> ComplexMatrix

Sets all elements of the ComplexMatrix lhs to be populated by the given distribution.

Parameters

  • distribution: A random distribution used to populate the given matrix

set_random(Distribution distribution, RandomGenerator generator) -> ComplexMatrix

Sets all elements of the ComplexMatrix lhs to be populated by the given distribution.

Parameters

  • distribution: A random distribution used to populate the given matrix
  • generator: A random number generator used to populate the matrix.