Skip to main content

random

Overloads

NameDescription
random(const List<integer> shape) -> ComplexMatrixCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_real type) -> RealMatrixCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_scalar type) -> ComplexMatrixCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrixCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_complex type) -> ComplexMatrixCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_array type) -> ComplexArrayCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_bool | as_array type) -> BoolArrayCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_integer | as_array type) -> IntegerArrayCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_real | as_array type) -> RealArrayCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_complex | as_array type) -> ComplexArrayCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_matrix type) -> ComplexMatrixCreates a container with the specified shape and type, filled with random values.
random(const List<integer> shape, as_real | as_matrix type) -> RealMatrixCreates a container with the specified shape and type, filled with random values.

random(const List<integer> shape) -> ComplexMatrix

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.

random(const List<integer> shape, as_real type) -> RealMatrix

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_scalar type) -> ComplexMatrix

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrix

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_complex type) -> ComplexMatrix

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_array type) -> ComplexArray

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_bool | as_array type) -> BoolArray

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_integer | as_array type) -> IntegerArray

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_real | as_array type) -> RealArray

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_complex | as_array type) -> ComplexArray

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_matrix type) -> ComplexMatrix

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.

random(const List<integer> shape, as_real | as_matrix type) -> RealMatrix

Creates a container with the specified shape and type, filled with random values.

Parameters

  • shape: The shape of the container to create.
  • type: The type of the container to create.