*
* \todo Doxygen has some problems with similar template functions. Correct that.
*/
-template <std::size_t I>
+template <std::ptrdiff_t I>
class static_vector_move_manip: public index_manipulator<static_vector_move_manip<I> > {
public:
template <typename V>
*
* \todo Doxygen has some problems with similar template functions. Correct that.
*/
-template <std::size_t I>
-BOOST_UBLAS_INLINE static_vector_move_manip<I> move() {
+template <std::ptrdiff_t I>
+static_vector_move_manip<I> move() {
return static_vector_move_manip<I>();
}
*
* \todo Doxygen has some problems with similar template functions. Correct that.
*/
-template <std::size_t I, std::size_t J>
+template <std::size_t I,std::size_t J>
class static_matrix_move_to_manip: public index_manipulator<static_matrix_move_to_manip<I, J> > {
public:
template <typename V, typename K>
*
* \todo Doxygen has some problems with similar template functions. Correct that.
*/
-template <std::size_t I, std::size_t J>
+template <std::ptrdiff_t I, std::ptrdiff_t J>
class static_matrix_move_manip: public index_manipulator<static_matrix_move_manip<I, J> > {
public:
template <typename V, typename K>
*
* \todo Doxygen has some problems with similar template functions. Correct that.
*/
-template <std::size_t I, std::size_t J>
+template <std::ptrdiff_t I, std::ptrdiff_t J>
BOOST_UBLAS_INLINE static_matrix_move_manip<I, J> move() {
return static_matrix_move_manip<I, J>();
}
* \endcode
* \sa begin2()
*/
-BOOST_UBLAS_INLINE begin1_manip begin1() {
+inline begin1_manip begin1() {
return begin1_manip();
}
* \endcode
* \sa begin1() begin2_manip
*/
-BOOST_UBLAS_INLINE begin2_manip begin2() {
+inline begin2_manip begin2() {
return begin2_manip();
}
* \endcode
* \sa next_column()
*/
-BOOST_UBLAS_INLINE next_row_manip next_row() {
+inline next_row_manip next_row() {
return next_row_manip();
}
* \endcode
*
*/
-BOOST_UBLAS_INLINE next_column_manip next_column() {
+inline next_column_manip next_column() {
return next_column_manip();
}
l++; j++;
if (l>=e().size2()) {
l=0; k++; j=j0; i++;
- // It is assumed that the iteration starts from 0 and happens only using this function from within
+ // It is assumed that the iteration starts from 0 and progresses only using this function from within
// an assigner object.
// Otherwise (i.e. if it is called outside the assigner object) apply2 should have been
// outside the if statement.
k++; i++;
if (k>=e().size1()) {
k=0; l++; i=i0; j++;
- // It is assumed that the iteration starts from 0 and happens only using this function from within
+ // It is assumed that the iteration starts from 0 and progresses only using this function from within
// an assigner object.
// Otherwise (i.e. if it is called outside the assigner object) apply2 should have been
// outside the if statement.
// Traverse policy namespace
namespace traverse_policy {
- by_row_policy<DEFAULT_WRAP_POLICY> by_row() {
+ inline by_row_policy<DEFAULT_WRAP_POLICY> by_row() {
return by_row_policy<DEFAULT_WRAP_POLICY>();
}
- by_row_policy<wrap> by_row_wrap() {
+ inline by_row_policy<wrap> by_row_wrap() {
return by_row_policy<wrap>();
}
- by_row_policy<no_wrap> by_row_no_wrap() {
+ inline by_row_policy<no_wrap> by_row_no_wrap() {
return by_row_policy<no_wrap>();
}
- by_column_policy<DEFAULT_WRAP_POLICY> by_column() {
+ inline by_column_policy<DEFAULT_WRAP_POLICY> by_column() {
return by_column_policy<DEFAULT_WRAP_POLICY>();
}
- by_column_policy<wrap> by_column_wrap() {
+ inline by_column_policy<wrap> by_column_wrap() {
return by_column_policy<wrap>();
}
- by_column_policy<no_wrap> by_column_no_wrap() {
+ inline by_column_policy<no_wrap> by_column_no_wrap() {
return by_column_policy<no_wrap>();
}