mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
implement scalar operators separately for each type using a macro.
This is required e.g. to allow "2 * m" with m a matrix of doubles.
This commit is contained in:
@@ -54,7 +54,7 @@ template<typename MatrixType> class MatrixBlock
|
||||
: m_matrix(other.m_matrix), m_startRow(other.m_startRow), m_endRow(other.m_endRow),
|
||||
m_startCol(other.m_startCol), m_endCol(other.m_endCol) {}
|
||||
|
||||
INHERIT_ASSIGNMENT_OPERATORS(MatrixBlock)
|
||||
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(MatrixBlock)
|
||||
|
||||
private:
|
||||
const Ref& _ref() const { return *this; }
|
||||
|
||||
Reference in New Issue
Block a user