Commit 84db6147 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Removing useless code from Multidiagonal matrix.

parent 38a7eb06
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -18,9 +18,6 @@
namespace TNL {
namespace Matrices {

template< typename Device >
class MultidiagonalMatrixDeviceDependentCode;

template< typename Real,
          typename Device,
          typename Index,
+0 −12
Original line number Diff line number Diff line
@@ -745,18 +745,6 @@ getIndexer() -> IndexerType&
   return this->indexer;
}

/*template< typename Real,
          typename Device,
          typename Index,
          ElementsOrganization Organization >
__cuda_callable__
Index
MultidiagonalMatrixView< Real, Device, Index, Organization >::
getElementIndex( const IndexType row, const IndexType localIdx ) const
{
   return this->indexer.getGlobalIndex( row, localIdx );
}*/

template< typename Real,
          typename Device,
          typename Index,
+1 −16
Original line number Diff line number Diff line
@@ -57,21 +57,6 @@ class MultidiagonalMatrixIndexer
         this->nonemptyRows = nonemptyRows;
      };

      /*__cuda_callable__
      IndexType getRowSize( const IndexType rowIdx ) const
      {
         if( rowIdx == 0 )
            return 2;
         if( columns <= rows )
         {
            if( rowIdx == columns - 1 )
               return 2;
            if( rowIdx == columns )
               return 1;
         }
         return 3;
      };*/

      __cuda_callable__
      const IndexType& getRows() const { return this->rows; };

@@ -106,5 +91,5 @@ class MultidiagonalMatrixIndexer
         IndexType rows, columns, diagonals, nonemptyRows;
};
      } //namespace details
   } // namespace Materices
   } // namespace Matrices
} // namespace TNL