Commit 1e800ca3 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Jakub Klinkovský
Browse files

Small fixes in segments and sparse matrix.

parent 5ac2ba24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.
+1 −1
Original line number Diff line number Diff line
@@ -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 ];
+1 −1

File changed.

Contains only whitespace changes.