Commit 79c1e841 authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Tomáš Oberhuber
Browse files

Removed method ArrayView::copy

Shallow copy is equivalent to binding, for which there is ArrayView::bind.
parent 2d93d568
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -237,15 +237,6 @@ public:
             typename = std::enable_if_t< std::is_convertible< T, ValueType >::value || IsArrayType< T >::value > >
   ArrayView& operator=( const T& array );

   /**
    * \brief Makes shallow copy of the array view.
    * 
    * \param view Reference to the source array view.
    * \return Reference to this array view.
    */
   __cuda_callable__
   ArrayView& copy( const ArrayView& view );

   /**
    * \brief Swaps this array view with another.
    *
+0 −13
Original line number Diff line number Diff line
@@ -118,19 +118,6 @@ operator=( const T& data )
   return *this;
}

template< typename Value,
           typename Device,
           typename Index >
__cuda_callable__
ArrayView< Value, Device, Index >&
ArrayView< Value, Device, Index >::
copy( const ArrayView& view )
{
   data = view.data;
   size = view.size;
   return *this;
}

template< typename Value,
          typename Device,
          typename Index >
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@ CSRView< Device, Index >&
CSRView< Device, Index >::
operator=( const CSRView& view )
{
   this->offsets.copy( view.offsets );
   this->offsets.bind( view.offsets );
   return *this;
}

+2 −2
Original line number Diff line number Diff line
@@ -368,8 +368,8 @@ operator=( const SlicedEllpackView< Device, Index, RowMajorOrder, SliceSize >& v
   this->size = view.size;
   this->alignedSize = view.alignedSize;
   this->segmentsCount = view.segmentsCount;
   this->sliceOffsets.copy( view.sliceOffsets );
   this->sliceSegmentSizes.copy( view.sliceSegmentSizes );
   this->sliceOffsets.bind( view.sliceOffsets );
   this->sliceSegmentSizes.bind( view.sliceSegmentSizes );
   return *this;
}

+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ operator=( const MatrixView& view )
{
   rows = view.rows;
   columns = view.columns;
   values.copy( view.values );
   values.bind( view.values );
   return *this;
}

Loading