Skip to content
Snippets Groups Projects
Commit 8b1b6cba authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Small

parent bd305940
No related branches found
No related tags found
1 merge request!32Expression templates 2
......@@ -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 );
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment