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_MATRIXREF_H
|
||||
#define EI_MATRIXREF_H
|
||||
#ifndef EIGEN_MATRIXREF_H
|
||||
#define EIGEN_MATRIXREF_H
|
||||
|
||||
template<typename MatrixType> class MatrixRef
|
||||
: public Object<typename MatrixType::Scalar, MatrixRef<MatrixType> >
|
||||
@@ -37,7 +37,7 @@ template<typename MatrixType> class MatrixRef
|
||||
MatrixRef(const MatrixRef& other) : m_matrix(other.m_matrix) {}
|
||||
~MatrixRef() {}
|
||||
|
||||
EI_INHERIT_ASSIGNMENT_OPERATORS(MatrixRef)
|
||||
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(MatrixRef)
|
||||
|
||||
private:
|
||||
int _rows() const { return m_matrix.rows(); }
|
||||
@@ -57,4 +57,4 @@ template<typename MatrixType> class MatrixRef
|
||||
MatrixType& m_matrix;
|
||||
};
|
||||
|
||||
#endif // EI_MATRIXREF_H
|
||||
#endif // EIGEN_MATRIXREF_H
|
||||
|
||||
Reference in New Issue
Block a user