Skip to main content

ones_like

Overloads

NameDescription
ones_like(const RealMatrix lhs) -> RealMatrixReturn a container of ones with the same shape and type as a given container.
ones_like(const ComplexMatrix lhs) -> ComplexMatrixReturn a container of ones with the same shape and type as a given container.
ones_like(const IntegerArray lhs) -> IntegerArrayReturn a container of ones with the same shape and type as a given container.
ones_like(const RealArray lhs) -> RealArrayReturn a container of ones with the same shape and type as a given container.
ones_like(const BoolArray lhs) -> BoolArrayReturn a container of ones with the same shape and type as a given container.
ones_like(const ComplexArray lhs) -> ComplexArrayReturn a container of ones with the same shape and type as a given container.

ones_like(const RealMatrix lhs) -> RealMatrix

Return a container of ones with the same shape and type as a given container.

Parameters

  • lhs: The input container.

ones_like(const ComplexMatrix lhs) -> ComplexMatrix

Return a container of ones with the same shape and type as a given container.

Parameters

  • lhs: The input container.

ones_like(const IntegerArray lhs) -> IntegerArray

Return a container of ones with the same shape and type as a given container.

Parameters

  • lhs: The input container.

ones_like(const RealArray lhs) -> RealArray

Return a container of ones with the same shape and type as a given container.

Parameters

  • lhs: The input container.

ones_like(const BoolArray lhs) -> BoolArray

Return a container of ones with the same shape and type as a given container.

Parameters

  • lhs: The input container.

ones_like(const ComplexArray lhs) -> ComplexArray

Return a container of ones with the same shape and type as a given container.

Parameters

  • lhs: The input container.