Identity
The \(n \times n\) identity matrix is simply defined by setting entry
\((i,j)\) to one if \(i = j\), and zero otherwise. For various
reasons, we generalize this definition to nonsquare, \(m \times n\),
matrices.
C++ API
-
void
Identity
(Matrix<T> &A, Int m, Int n)
-
void
Identity
(AbstractDistMatrix<T> &A, Int m, Int n)
Set the matrix A
equal to the \(m \times n\) identity(-like) matrix.
-
void
MakeIdentity
(Matrix<T> &A)
-
void
MakeIdentity
(AbstractDistMatrix<T> &A)
Set the matrix A
to be identity-like.
C API
-
ElError
ElIdentity_i
(ElMatrix_i A, ElInt m, ElInt n)
-
ElError
ElIdentity_s
(ElMatrix_s A, ElInt m, ElInt n)
-
ElError
ElIdentity_d
(ElMatrix_d A, ElInt m, ElInt n)
-
ElError
ElIdentity_c
(ElMatrix_c A, ElInt m, ElInt n)
-
ElError
ElIdentity_z
(ElMatrix_z A, ElInt m, ElInt n)
-
ElError
ElIdentityDist_i
(ElDistMatrix_i A, ElInt m, ElInt n)
-
ElError
ElIdentityDist_s
(ElDistMatrix_s A, ElInt m, ElInt n)
-
ElError
ElIdentityDist_d
(ElDistMatrix_d A, ElInt m, ElInt n)
-
ElError
ElIdentityDist_c
(ElDistMatrix_c A, ElInt m, ElInt n)
-
ElError
ElIdentityDist_z
(ElDistMatrix_z A, ElInt m, ElInt n)
Python API
-
Identity
(A, m, n)