diff --git a/src/Math/RectangularMatrix.h b/src/Math/RectangularMatrix.h index 044574fa5..329cccabd 100644 --- a/src/Math/RectangularMatrix.h +++ b/src/Math/RectangularMatrix.h @@ -63,8 +63,6 @@ Vector. template class RectangularMatrix { static_assert(c != 0 && r != 0, "Matrix cannot have zero elements"); - friend class Vector; - public: typedef T Type; /**< @brief Data type */ const static size_t cols = c; /**< @brief %Matrix column count */ @@ -332,6 +330,11 @@ template class RectangularMatrix { return out; } + #ifndef DOXYGEN_GENERATING_OUTPUT + protected: + T _data[rows*cols]; + #endif + private: template inline constexpr static RectangularMatrix from(Implementation::Sequence s, const Vector& first, U... next) { return from(s, next..., first[sequence]...); @@ -339,8 +342,6 @@ template class RectangularMatrix { template inline constexpr static RectangularMatrix from(Implementation::Sequence, T first, U... next) { return RectangularMatrix(first, next...); } - - T _data[rows*cols]; }; /** @relates RectangularMatrix