mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Document non-const SparseMatrix::diagonal() method.
This commit is contained in:
parent
b26e697182
commit
e2f3e4e4aa
@ -633,8 +633,13 @@ class SparseMatrix
|
||||
m_data.resize(size);
|
||||
}
|
||||
|
||||
/** \returns a const expression of the diagonal coefficients */
|
||||
/** \returns a const expression of the diagonal coefficients. */
|
||||
const ConstDiagonalReturnType diagonal() const { return ConstDiagonalReturnType(*this); }
|
||||
|
||||
/** \returns a read-write expression of the diagonal coefficients.
|
||||
* \warning If the diagonal entries are written, then all diagonal
|
||||
* entries \b must already exist, otherwise an assertion will be raised.
|
||||
*/
|
||||
DiagonalReturnType diagonal() { return DiagonalReturnType(*this); }
|
||||
|
||||
/** Default constructor yielding an empty \c 0 \c x \c 0 matrix */
|
||||
|
Loading…
Reference in New Issue
Block a user