Home | History | Annotate | Download | only in doc

Lines Matching full:diagonal

538 <a href="#" class="top">top</a>\section QuickRef_DiagTriSymm Diagonal, Triangular, and Self-adjoint matrices
541 \subsection QuickRef_Diagonal Diagonal matrices
546 view a vector \link MatrixBase::asDiagonal() as a diagonal matrix \endlink \n </td><td>\code
550 Declare a diagonal matrix</td><td>\code
552 diag1.diagonal() = vector;\endcode
554 <tr><td>Access the \link MatrixBase::diagonal() diagonal \endlink and \link MatrixBase::diagonal(Index) super/sub diagonals \endlink of a matrix as a vector (read/write)</td>
556 vec1 = mat1.diagonal(); mat1.diagonal() = vec1; // main diagonal
557 vec1 = mat1.diagonal(+n); mat1.diagonal(+n) = vec1; // n-th super diagonal
558 vec1 = mat1.diagonal(-n); mat1.diagonal(-n) = vec1; // n-th sub diagonal
559 vec1 = mat1.diagonal<1>(); mat1.diagonal<1>() = vec1; // first super diagonal
560 vec1 = mat1.diagonal<-2>(); mat1.diagonal<-2>() = vec1; // second sub diagonal
586 unit or null diagonal (read/write):
672 \link MatrixBase::asDiagonal() make a diagonal matrix \endlink \n from a vector </td><td>\code
676 Declare a diagonal matrix</td><td>\code
678 diag1.diagonal() = vector;\endcode
680 <tr><td>Access \link MatrixBase::diagonal() the diagonal and super/sub diagonals of a matrix \endlink as a vector (read/write)</td>
682 vec1 = mat1.diagonal(); mat1.diagonal() = vec1; // main diagonal
683 vec1 = mat1.diagonal(+n); mat1.diagonal(+n) = vec1; // n-th super diagonal
684 vec1 = mat1.diagonal(-n); mat1.diagonal(-n) = vec1; // n-th sub diagonal
685 vec1 = mat1.diagonal<1>(); mat1.diagonal<1>() = vec1; // first super diagonal
686 vec1 = mat1.diagonal<-2>(); mat1.diagonal<-2>() = vec1; // second sub diagonal