Skip to main content

identity

Overloads​

NameDescription
identity(const List<integer> shape) -> ComplexMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_scalar type) -> ComplexMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_real type) -> RealMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_complex | as_sparsematrix type) -> ComplexSparseMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_real | as_sparsematrix type) -> RealSparseMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_real | as_matrix type) -> RealMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_sparsematrix type) -> ComplexSparseMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_complex | as_matrix type) -> ComplexMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_bool | as_array type) -> BoolArrayCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_matrix type) -> ComplexMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_complex | as_array type) -> ComplexArrayCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_real | as_array type) -> RealArrayCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_integer | as_array type) -> IntegerArrayCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_complex type) -> ComplexMatrixCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.
identity(const List<integer> shape, as_array type) -> ComplexArrayCreates an identity matrix (or array; possibly rectangular) with the specified shape and type.

identity(const List<integer> shape) -> ComplexMatrix​

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

  • shape: The shape of the container to create.

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

identity(const List<integer> shape, as_complex | as_sparsematrix type) -> ComplexSparseMatrix​

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

identity(const List<integer> shape, as_real | as_sparsematrix type) -> RealSparseMatrix​

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

identity(const List<integer> shape, as_sparsematrix type) -> ComplexSparseMatrix​

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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

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

Creates an identity matrix (or array; possibly rectangular) with the specified shape and type.

Parameters​

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