From 8e05f9cfa1538d76a9d3e01e08ba565bd581806a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 4 Dec 2009 23:17:14 +0100 Subject: add a DenseBase class for MAtrixBase and ArrayBase and more code factorisation --- Eigen/src/Core/CommaInitializer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Eigen/src/Core/CommaInitializer.h') diff --git a/Eigen/src/Core/CommaInitializer.h b/Eigen/src/Core/CommaInitializer.h index 328c5580c..428e4d82d 100644 --- a/Eigen/src/Core/CommaInitializer.h +++ b/Eigen/src/Core/CommaInitializer.h @@ -47,7 +47,7 @@ struct CommaInitializer } template - inline CommaInitializer(MatrixType& mat, const MatrixBase& other) + inline CommaInitializer(MatrixType& mat, const DenseBase& other) : m_matrix(mat), m_row(0), m_col(other.cols()), m_currentBlockRows(other.rows()) { m_matrix.block(0, 0, other.rows(), other.cols()) = other; @@ -73,7 +73,7 @@ struct CommaInitializer /* inserts a matrix expression in the target matrix */ template - CommaInitializer& operator,(const MatrixBase& other) + CommaInitializer& operator,(const DenseBase& other) { if (m_col==m_matrix.cols()) { @@ -133,7 +133,7 @@ private: * \sa CommaInitializer::finished(), class CommaInitializer */ template -inline CommaInitializer MatrixBase::operator<< (const Scalar& s) +inline CommaInitializer DenseBase::operator<< (const Scalar& s) { return CommaInitializer(*static_cast(this), s); } @@ -142,7 +142,7 @@ inline CommaInitializer MatrixBase::operator<< (const Scalar& template template inline CommaInitializer -MatrixBase::operator<<(const MatrixBase& other) +DenseBase::operator<<(const DenseBase& other) { return CommaInitializer(*static_cast(this), other); } -- cgit v1.2.3