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
(AbstractDistMatrix<T> &A, Int m, Int n)¶ Set the matrix
A
equal to the \(m \times n\) identity(-like) matrix.
-
void
MakeIdentity
(AbstractDistMatrix<T> &A)¶ Set the matrix
A
to be identity-like.