identity
Overloads
| Name | Description |
|---|---|
identity(const List<integer> shape) -> ComplexMatrix | Creates an identity matrix (or array; possibly rectangular) with the specified shape and type. |
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. |
identity(const List<integer> shape, as_matrix type) -> ComplexMatrix | Creates an identity matrix (or array; possibly rectangular) with the specified shape and type. |
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. |
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. |
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. |
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. |
identity(const List<integer> shape, as_array type) -> ComplexArray | Creates an identity matrix (or array; possibly rectangular) with the specified shape and type. |
identity(const List<integer> shape, as_complex type) -> ComplexMatrix | Creates an identity matrix (or array; possibly rectangular) with the specified shape and type. |
identity(const List<integer> shape, as_real type) -> RealMatrix | Creates an identity matrix (or array; possibly rectangular) with the specified shape and type. |
identity(const List<integer> shape, as_sparsematrix type) -> ComplexSparseMatrix | Creates an identity matrix (or array; possibly rectangular) with the specified shape and type. |
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. |
identity(const List<integer> shape, as_scalar type) -> ComplexMatrix | Creates an identity matrix (or array; possibly rectangular) with the specified shape and type. |
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. |
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. |
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_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_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_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_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_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_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_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_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_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.