- 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

@@ -33,15 +33,15 @@ template<typename MatrixType> class Ones : NoOperatorEquals,
typedef typename MatrixType::Scalar Scalar;
friend class MatrixBase<Scalar, Ones<MatrixType> >;
static const int RowsAtCompileTime = MatrixType::RowsAtCompileTime,
ColsAtCompileTime = MatrixType::ColsAtCompileTime;
Ones(int rows, int cols) : m_rows(rows), m_cols(cols)
{
assert(rows > 0 && cols > 0);
}
private:
static const int _RowsAtCompileTime = MatrixType::RowsAtCompileTime,
_ColsAtCompileTime = MatrixType::ColsAtCompileTime;
const Ones& _ref() const { return *this; }
int _rows() const { return m_rows; }
int _cols() const { return m_cols; }