mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
- make RowsAtCompileTime and ColsAtCompileTime public in
MatrixBase and private in derived types - initial documentation in MatrixBase
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user