Commit a65bdf13 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixes in ArrayView and VectorView

parent 5984c90e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ public:
   // "Templated copy-constructor" accepting any cv-qualification of Value
   template< typename Value_ >
   __cuda_callable__
   ArrayView( ArrayView< Value_, Device, Index >& array )
   ArrayView( const ArrayView< Value_, Device, Index >& array )
   : data(array.getData()), size(array.getSize()) {}

   // default move-constructor
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public:

   //! Computes scalar dot product
   template< typename Vector >
   NonConstReal scalarProduct( const Vector& v );
   NonConstReal scalarProduct( const Vector& v ) const;

   //! Computes this = thisMultiplicator * this + alpha * x.
   template< typename Vector >
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ template< typename Real,
   template< typename Vector >
typename VectorView< Real, Device, Index >::NonConstReal
VectorView< Real, Device, Index >::
scalarProduct( const Vector& v )
scalarProduct( const Vector& v ) const
{
   return Algorithms::VectorOperations< Device >::template getScalarProduct< VectorView, Vector, NonConstReal >( *this, v );
}