Skip to main content

identity_like

Overloads​

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

identity_like(const RealMatrix lhs) -> RealMatrix​

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

Parameters​

  • lhs: The input container.

identity_like(const ComplexArray lhs) -> ComplexArray​

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

Parameters​

  • lhs: The input container.

identity_like(const RealArray lhs) -> RealArray​

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

Parameters​

  • lhs: The input container.

identity_like(const BoolArray lhs) -> BoolArray​

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

Parameters​

  • lhs: The input container.

identity_like(const IntegerArray lhs) -> IntegerArray​

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

Parameters​

  • lhs: The input container.

identity_like(const ComplexMatrix lhs) -> ComplexMatrix​

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

Parameters​

  • lhs: The input container.