From 8b1b6cba5c9bff441a3efa5312426303f8e35793 Mon Sep 17 00:00:00 2001
From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz>
Date: Mon, 20 May 2019 14:00:30 +0200
Subject: [PATCH] Small

---
 src/TNL/Containers/Vector.h    | 2 +-
 src/TNL/Matrices/Sparse_impl.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/TNL/Containers/Vector.h b/src/TNL/Containers/Vector.h
index 336b4121e8..2aa5e60ff5 100644
--- a/src/TNL/Containers/Vector.h
+++ b/src/TNL/Containers/Vector.h
@@ -404,7 +404,7 @@ public:
     * \param begin Index of the element in this vector which to begin with.
     * \param end Index of the element in this vector which to end with.
     */
-   void computeSegmentedExclusivePrefixSum( const IndexType begin, const IndexType end );
+   void computeExclusivePrefixSum( const IndexType begin, const IndexType end );
 
    template< typename FlagsArray >
    void computeSegmentedPrefixSum( FlagsArray& flags );
diff --git a/src/TNL/Matrices/Sparse_impl.h b/src/TNL/Matrices/Sparse_impl.h
index 18bc4ea71e..5886681752 100644
--- a/src/TNL/Matrices/Sparse_impl.h
+++ b/src/TNL/Matrices/Sparse_impl.h
@@ -52,7 +52,7 @@ Index Sparse< Real, Device, Index >::getNumberOfNonzeroMatrixElements() const
    IndexType nonzeroElements( 0 );
    for( IndexType i = 0; i < this->values.getSize(); i++ )
       if( this->columnIndexes.getElement( i ) != this-> columns &&
-          this->values.getElement( i ) != 0.0 )
+          this->values.getElement( i ) != RealType( 0 ) )
          nonzeroElements++;
    return nonzeroElements;
 }
-- 
GitLab