- make RowsAtCompileTime and ColsAtCompileTime public in

MatrixBase and private in derived types
- initial documentation in MatrixBase
This commit is contained in:
Benoit Jacob
2007-12-19 09:30:53 +00:00
parent 59be5c3124
commit cddeeee17d
23 changed files with 157 additions and 96 deletions

View File

@@ -34,9 +34,6 @@ template<typename MatrixType> class Transpose
typedef typename MatrixType::Ref MatRef;
friend class MatrixBase<Scalar, Transpose<MatrixType> >;
static const int RowsAtCompileTime = MatrixType::ColsAtCompileTime,
ColsAtCompileTime = MatrixType::RowsAtCompileTime;
Transpose(const MatRef& matrix) : m_matrix(matrix) {}
Transpose(const Transpose& other)
@@ -45,6 +42,9 @@ template<typename MatrixType> class Transpose
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Transpose)
private:
static const int _RowsAtCompileTime = MatrixType::ColsAtCompileTime,
_ColsAtCompileTime = MatrixType::RowsAtCompileTime;
const Transpose& _ref() const { return *this; }
int _rows() const { return m_matrix.cols(); }
int _cols() const { return m_matrix.rows(); }