Loading src/TNL/Matrices/SparseMatrix.h +1 −1 Original line number Diff line number Diff line Loading @@ -797,7 +797,7 @@ class SparseMatrix : public Matrix< Real, Device, Index, RealAllocator > * The lambda function `function` should be declared like follows: * * ``` * auto function = [] __cuda_callable__ ( IndexType rowIdx, IndexType localIdx, IndexType columnIdx, const RealType& value ) mutable { ... } * auto function = [] __cuda_callable__ ( IndexType rowIdx, IndexType localIdx, IndexType& columnIdx, const RealType& value ) mutable { ... } * ``` * * The \e localIdx parameter is a rank of the non-zero element in given row. Loading src/TNL/Matrices/SparseMatrixView.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -417,7 +417,7 @@ vectorProduct( const InVector& inVector, const auto valuesView = this->values.getConstView(); const auto columnIndexesView = this->columnIndexes.getConstView(); const IndexType paddingIndex = this->getPaddingIndex(); if( isSymmetric() ) if( isSymmetric() && outVectorMultiplicator != 1.0 ) outVector *= outVectorMultiplicator; auto symmetricFetch = [=] __cuda_callable__ ( IndexType row, IndexType localIdx, IndexType globalIdx, bool& compute ) mutable -> ComputeRealType { const IndexType column = columnIndexesView[ globalIdx ]; Loading src/TNL/Algorithms/Segments/CSR.h +1 −1 File changed.Contains only whitespace changes. Show changes Loading
src/TNL/Matrices/SparseMatrix.h +1 −1 Original line number Diff line number Diff line Loading @@ -797,7 +797,7 @@ class SparseMatrix : public Matrix< Real, Device, Index, RealAllocator > * The lambda function `function` should be declared like follows: * * ``` * auto function = [] __cuda_callable__ ( IndexType rowIdx, IndexType localIdx, IndexType columnIdx, const RealType& value ) mutable { ... } * auto function = [] __cuda_callable__ ( IndexType rowIdx, IndexType localIdx, IndexType& columnIdx, const RealType& value ) mutable { ... } * ``` * * The \e localIdx parameter is a rank of the non-zero element in given row. Loading
src/TNL/Matrices/SparseMatrixView.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -417,7 +417,7 @@ vectorProduct( const InVector& inVector, const auto valuesView = this->values.getConstView(); const auto columnIndexesView = this->columnIndexes.getConstView(); const IndexType paddingIndex = this->getPaddingIndex(); if( isSymmetric() ) if( isSymmetric() && outVectorMultiplicator != 1.0 ) outVector *= outVectorMultiplicator; auto symmetricFetch = [=] __cuda_callable__ ( IndexType row, IndexType localIdx, IndexType globalIdx, bool& compute ) mutable -> ComputeRealType { const IndexType column = columnIndexesView[ globalIdx ]; Loading