diff --git a/src/TNL/Matrices/CSR_impl.h b/src/TNL/Matrices/CSR_impl.h index c86b5c016c29cfb37ead05b15df81023d6b99d73..b4dff85470bf86021c69478138eb3be86f74d593 100644 --- a/src/TNL/Matrices/CSR_impl.h +++ b/src/TNL/Matrices/CSR_impl.h @@ -11,7 +11,7 @@ #pragma once #include <TNL/Matrices/CSR.h> -#include <TNL/Containers/Vector.h> +#include <TNL/Containers/VectorView.h> #include <TNL/Math.h> #ifdef HAVE_CUSPARSE @@ -99,7 +99,7 @@ void CSR< Real, Device, Index >::setCompressedRowLengths( ConstCompressedRowLeng * necessary length of the vectors this->values * and this->columnIndexes. */ - Containers::Vector< IndexType, DeviceType, IndexType > rowPtrs; + Containers::VectorView< IndexType, DeviceType, IndexType > rowPtrs; rowPtrs.bind( this->rowPointers.getData(), this->getRows() ); rowPtrs = rowLengths; this->rowPointers.setElement( this->rows, 0 );