mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
- improve and comment the "BasicStuff" test.
- adjust behavior of Matrix(int,int) constructor - s/EI_/EIGEN_/
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
// License. This exception does not invalidate any other reasons why a work
|
||||
// based on this file might be covered by the GNU General Public License.
|
||||
|
||||
#ifndef EI_SUM_H
|
||||
#define EI_SUM_H
|
||||
#ifndef EIGEN_SUM_H
|
||||
#define EIGEN_SUM_H
|
||||
|
||||
template<typename Lhs, typename Rhs> class Sum
|
||||
: public Object<typename Lhs::Scalar, Sum<Lhs, Rhs> >
|
||||
@@ -48,7 +48,7 @@ template<typename Lhs, typename Rhs> class Sum
|
||||
: m_lhs(other.m_lhs), m_rhs(other.m_rhs) {}
|
||||
|
||||
// assignments are illegal but we still want to intercept them and get clean compile errors
|
||||
EI_INHERIT_ASSIGNMENT_OPERATORS(Sum)
|
||||
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Sum)
|
||||
|
||||
private:
|
||||
const Sum& _ref() const { return *this; }
|
||||
@@ -80,4 +80,4 @@ Object<Scalar, Derived>::operator+=(const Object<Scalar, OtherDerived>& other)
|
||||
return *this = *this + other;
|
||||
}
|
||||
|
||||
#endif // EI_SUM_H
|
||||
#endif // EIGEN_SUM_H
|
||||
|
||||
Reference in New Issue
Block a user