diff --git a/dash/include/dash/Matrix.h b/dash/include/dash/Matrix.h index 1d4c49f94..fe7c9983d 100644 --- a/dash/include/dash/Matrix.h +++ b/dash/include/dash/Matrix.h @@ -609,54 +609,58 @@ class Matrix local_type sub_local() noexcept; /** - * Projection to given offset in first sub-dimension (column), same as - * \c sub<0>(n). + * Projection to given offset in second sub-dimension (column), same as + * \c sub<1>(n). * * \returns A \ref MatrixRef object representing the nth column * * \see sub * \see row */ - const_view_type col( + typename std::enable_if>::type + col( size_type n ///< Column offset. ) const; /** - * Projection to given offset in first sub-dimension (column), same as - * \c sub<0>(n). + * Projection to given offset in second sub-dimension (column), same as + * \c sub<1>(n). * * \returns A \ref MatrixRef object representing the nth column * * \see sub * \see row */ - view_type col( + typename std::enable_if>::type + col( size_type n ///< Column offset. ); /** - * Projection to given offset in second sub-dimension (rows), same as - * \c sub<1>(n). + * Projection to given offset in first sub-dimension (rows), same as + * \c sub<0>(n). * * \returns A \ref MatrixRef object representing the nth row * * \see sub * \see col */ - const_view_type row( + typename std::enable_if>::type + row( size_type n ///< Row offset. ) const; /** - * Projection to given offset in second sub-dimension (rows), same as - * \c sub<1>(n). + * Projection to given offset in first sub-dimension (rows), same as + * \c sub<0>(n). * * \returns A \ref MatrixRef object representing the nth row * * \see sub * \see col */ - view_type row( + typename std::enable_if>::type + row( size_type n ///< Row offset. ); @@ -669,7 +673,8 @@ class Matrix * * \see sub */ - view_type cols( + typename std::enable_if>::type + cols( size_type offset, ///< Offset of first column in range. size_type range ///< Number of columns in the range. ); @@ -683,7 +688,8 @@ class Matrix * * \see sub */ - view_type rows( + typename std::enable_if>::type + rows( size_type n, ///< Offset of first row in range. size_type range ///< Number of rows in the range. ); diff --git a/dash/include/dash/matrix/internal/Matrix-inl.h b/dash/include/dash/matrix/internal/Matrix-inl.h index f7bc625c8..1eac8dd79 100644 --- a/dash/include/dash/matrix/internal/Matrix-inl.h +++ b/dash/include/dash/matrix/internal/Matrix-inl.h @@ -611,7 +611,8 @@ ::sub( } template -MatrixRef + typename std::enable_if<(NumDim==2), + MatrixRef>::type Matrix ::col( size_type n) const @@ -620,7 +621,8 @@ ::col( } template -MatrixRef + typename std::enable_if<(NumDim==2), + MatrixRef>::type Matrix ::col( size_type n) @@ -629,7 +631,8 @@ ::col( } template -MatrixRef + typename std::enable_if<(NumDim==2), + MatrixRef>::type Matrix ::row( size_type n) const @@ -638,7 +641,8 @@ ::row( } template -MatrixRef + typename std::enable_if<(NumDim==2), + MatrixRef>::type Matrix ::row( size_type n) @@ -647,7 +651,8 @@ ::row( } template -MatrixRef + typename std::enable_if<(NumDim==2), + MatrixRef>::type Matrix ::rows( size_type offset, @@ -657,7 +662,8 @@ ::rows( } template -MatrixRef + typename std::enable_if<(NumDim==2), + MatrixRef>::type Matrix ::cols( size_type offset,