Loading Documentation/Examples/Matrices/DenseMatrix/DenseMatrixExample_forRows.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ) ); }; /*** Loading Documentation/Examples/Matrices/DenseMatrix/DenseMatrixExample_getConstRow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ); }; /*** Loading Documentation/Examples/Matrices/DenseMatrix/DenseMatrixExample_getRow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ) ); }; /*** Loading Documentation/Examples/Matrices/DenseMatrix/DenseMatrixViewExample_forRows.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ) ); }; /*** Loading Documentation/Examples/Matrices/DenseMatrix/DenseMatrixViewExample_getConstRow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
Documentation/Examples/Matrices/DenseMatrix/DenseMatrixExample_forRows.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ) ); }; /*** Loading
Documentation/Examples/Matrices/DenseMatrix/DenseMatrixExample_getConstRow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ); }; /*** Loading
Documentation/Examples/Matrices/DenseMatrix/DenseMatrixExample_getRow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ) ); }; /*** Loading
Documentation/Examples/Matrices/DenseMatrix/DenseMatrixViewExample_forRows.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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 ) ); }; /*** Loading
Documentation/Examples/Matrices/DenseMatrix/DenseMatrixViewExample_getConstRow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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