Skip to main content

random_like

Method of RealMatrix.

Overloads

NameDescription
random_like(Distribution distribution) -> RealMatrixReturn a RealMatrix of random numbers with the same shape and type as a given RealMatrix.
random_like() -> RealMatrixReturn a RealMatrix of random numbers with the same shape and type as a given RealMatrix.

random_like(Distribution distribution) -> RealMatrix

Return a RealMatrix of random numbers with the same shape and type as a given RealMatrix.

Parameters

  • distribution: A Distribution used to populate the given array.

random_like() -> RealMatrix

Return a RealMatrix of random numbers with the same shape and type as a given RealMatrix.