From 12487531ce45b61f6d764d7b0fea33815bd763da Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 2 Oct 2018 14:02:34 +0200 Subject: Add templated subVector(Index) aliases to col/row(Index) methods (plus subVectors<>() to retrieve the number of rows/columns) --- Eigen/src/Core/VectorwiseOp.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'Eigen/src/Core/VectorwiseOp.h') diff --git a/Eigen/src/Core/VectorwiseOp.h b/Eigen/src/Core/VectorwiseOp.h index 893bc796f..e44cbd468 100644 --- a/Eigen/src/Core/VectorwiseOp.h +++ b/Eigen/src/Core/VectorwiseOp.h @@ -186,24 +186,7 @@ template class VectorwiseOp }; protected: - - typedef typename internal::conditional::type SubVector; - /** \internal - * \returns the i-th subvector according to the \c Direction */ - EIGEN_DEVICE_FUNC - SubVector subVector(Index i) - { - return SubVector(m_matrix.derived(),i); - } - - /** \internal - * \returns the number of subvectors in the direction \c Direction */ - EIGEN_DEVICE_FUNC - Index subVectors() const - { return isVertical?m_matrix.cols():m_matrix.rows(); } - + template struct ExtendedType { typedef Replicate