mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
- introduce sum() returning the sum of the coeffs of a vector
- reimplement trace() as just diagonal().sum() - apidoc fixes
This commit is contained in:
@@ -230,8 +230,7 @@ template<typename Derived> class MatrixBase
|
||||
{ return matrix*scalar; }
|
||||
//@}
|
||||
|
||||
/** \name Matrix product and related notions
|
||||
* including the trace...
|
||||
/** \name Matrix product
|
||||
*/
|
||||
//@{
|
||||
template<typename OtherDerived>
|
||||
@@ -244,7 +243,12 @@ template<typename Derived> class MatrixBase
|
||||
|
||||
template<typename OtherDerived>
|
||||
Derived& operator*=(const MatrixBase<OtherDerived>& other);
|
||||
//@}
|
||||
|
||||
/** \name Sums of coefficients
|
||||
*/
|
||||
//@{
|
||||
Scalar sum() const;
|
||||
Scalar trace() const;
|
||||
//@}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user