diff options
Diffstat (limited to 'Eigen/src/Core/MatrixBase.h')
-rw-r--r-- | Eigen/src/Core/MatrixBase.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index 5698b7602..f503ebcbf 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -228,6 +228,11 @@ template<typename Derived> class MatrixBase template<int StoreMode> void writePacket(int row, int col, const PacketScalar& x); + template<int LoadMode> + PacketScalar packet(int index) const; + template<int StoreMode> + void writePacket(int index, const PacketScalar& x); + const Scalar x() const; const Scalar y() const; const Scalar z() const; @@ -307,11 +312,11 @@ template<typename Derived> class MatrixBase Block<Derived> block(int start, int size); const Block<Derived> block(int start, int size) const; - Block<Derived> start(int size); - const Block<Derived> start(int size) const; + typename SubVectorReturnType<Dynamic>::Type start(int size); + const typename SubVectorReturnType<Dynamic>::Type start(int size) const; - Block<Derived> end(int size); - const Block<Derived> end(int size) const; + typename SubVectorReturnType<Dynamic>::Type end(int size); + const typename SubVectorReturnType<Dynamic>::Type end(int size) const; Block<Derived> corner(CornerType type, int cRows, int cCols); const Block<Derived> corner(CornerType type, int cRows, int cCols) const; |