Commit 47f892d6 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fix after renaming DenseMatrixRowView::setElement to DenseMatrixRowView::setValue.

parent ba0fc548
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ void forRowsExample()

   auto f = [=] __cuda_callable__ ( RowView& row ) mutable {
      const int& rowIdx = row.getRowIndex();
      row.setElement( rowIdx, 10 * ( rowIdx + 1 ) );
      row.setValue( rowIdx, 10 * ( rowIdx + 1 ) );
   };

   /***
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ void getRowExample()
    */
   auto fetch = [=] __cuda_callable__ ( int rowIdx ) mutable -> double {
      auto row = matrix->getRow( rowIdx );
      return row.getElement( rowIdx );
      return row.getValue( rowIdx );
   };

   /***
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ void getRowExample()

   auto f = [=] __cuda_callable__ ( int rowIdx ) mutable {
      auto row = matrix->getRow( rowIdx );
      row.setElement( rowIdx, 10 * ( rowIdx + 1 ) );
      row.setValue( rowIdx, 10 * ( rowIdx + 1 ) );
   };

   /***
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ void forRowsExample()

   auto f = [=] __cuda_callable__ ( RowView& row ) mutable {
      const int& rowIdx = row.getRowIndex();
      row.setElement( rowIdx, 10 * ( rowIdx + 1 ) );
      row.setValue( rowIdx, 10 * ( rowIdx + 1 ) );
   };

   /***
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ void getRowExample()
    */
   auto fetch = [=] __cuda_callable__ ( int rowIdx ) mutable -> double {
      auto row = matrixView.getRow( rowIdx );
      return row.getElement( rowIdx );
      return row.getValue( rowIdx );
   };

   int trace = TNL::Algorithms::Reduction< Device >::reduce( 0, matrix.getRows(), fetch, std::plus<>{}, 0 );
Loading