Commit 9319e714 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Renaming ForSegments to ForElements and ForAllSegments to ForEachElement.

parent 166bbe68
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -94,10 +94,10 @@ class BiEllpack
       * is terminated.
       */
      template< typename Function, typename... Args >
      void forSegments( IndexType first, IndexType last, Function& f, Args... args ) const;
      void forElements( IndexType first, IndexType last, Function& f, Args... args ) const;

      template< typename Function, typename... Args >
      void forAll( Function& f, Args... args ) const;
      void forEachElement( Function& f, Args... args ) const;


      /***
+4 −4
Original line number Diff line number Diff line
@@ -446,9 +446,9 @@ template< typename Device,
   template< typename Function, typename... Args >
void
BiEllpack< Device, Index, IndexAllocator, Organization, WarpSize >::
forSegments( IndexType first, IndexType last, Function& f, Args... args ) const
forElements( IndexType first, IndexType last, Function& f, Args... args ) const
{
   this->getConstView().forSegments( first, last, f, args... );
   this->getConstView().forElements( first, last, f, args... );
}

template< typename Device,
@@ -459,9 +459,9 @@ template< typename Device,
   template< typename Function, typename... Args >
void
BiEllpack< Device, Index, IndexAllocator, Organization, WarpSize >::
forAll( Function& f, Args... args ) const
forEachElement( Function& f, Args... args ) const
{
   this->forSegments( 0, this->getSegmentsCount(), f, args... );
   this->forElements( 0, this->getSegmentsCount(), f, args... );
}

template< typename Device,
+2 −2
Original line number Diff line number Diff line
@@ -112,10 +112,10 @@ class BiEllpackView
       * is terminated.
       */
      template< typename Function, typename... Args >
      void forSegments( IndexType first, IndexType last, Function& f, Args... args ) const;
      void forElements( IndexType first, IndexType last, Function& f, Args... args ) const;

      template< typename Function, typename... Args >
      void forAll( Function& f, Args... args ) const;
      void forEachElement( Function& f, Args... args ) const;


      /***
+3 −3
Original line number Diff line number Diff line
@@ -258,7 +258,7 @@ template< typename Device,
   template< typename Function, typename... Args >
void
BiEllpackView< Device, Index, Organization, WarpSize >::
forSegments( IndexType first, IndexType last, Function& f, Args... args ) const
forElements( IndexType first, IndexType last, Function& f, Args... args ) const
{
   const auto segmentsPermutationView = this->rowPermArray.getConstView();
   const auto groupPointersView = this->groupPointers.getConstView();
@@ -308,9 +308,9 @@ template< typename Device,
   template< typename Function, typename... Args >
void
BiEllpackView< Device, Index, Organization, WarpSize >::
forAll( Function& f, Args... args ) const
forEachElement( Function& f, Args... args ) const
{
   this->forSegments( 0, this->getSegmentsCount(), f, args... );
   this->forElements( 0, this->getSegmentsCount(), f, args... );
}

template< typename Device,
+2 −2
Original line number Diff line number Diff line
@@ -109,10 +109,10 @@ class CSR
       * is terminated.
       */
      template< typename Function, typename... Args >
      void forSegments( IndexType first, IndexType last, Function& f, Args... args ) const;
      void forElements( IndexType first, IndexType last, Function& f, Args... args ) const;

      template< typename Function, typename... Args >
      void forAll( Function& f, Args... args ) const;
      void forEachElement( Function& f, Args... args ) const;

      /***
       * \brief Go over all segments and perform a reduction in each of them.
Loading