From cd2e1bbdab844266fee9bdb23b42d58e6122196d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Sat, 29 Sep 2018 14:31:11 +0200 Subject: [PATCH] Used VectorView instead of Vector for binding in CSR --- src/TNL/Matrices/CSR_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TNL/Matrices/CSR_impl.h b/src/TNL/Matrices/CSR_impl.h index c86b5c016c..b4dff85470 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 ); -- GitLab