Loading src/TNL/Containers/ArrayView.h +3 −9 Original line number Diff line number Diff line Loading @@ -67,16 +67,10 @@ public: __cuda_callable__ void bind( Element* data, const Index size ); // Note that you can also bind directly to Array and other types implicitly // convertible to ArrayView. __cuda_callable__ void bind( ArrayView& view ); template< typename Element_ > // template catches both const and non-const qualified Element __cuda_callable__ void bind( Array< Element_, Device, Index >& array ); template< int Size, typename Element_ > // template catches both const and non-const qualified Element __cuda_callable__ void bind( StaticArray< Size, Element_ >& array ); void bind( ArrayView view ); // Copy-assignment does deep copy, just like regular array, but the sizes Loading src/TNL/Containers/ArrayView_impl.h +2 −26 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ __cuda_callable__ ArrayView< Element, Device, Index >:: ArrayView( StaticArray< Size, Element_ >& array ) { this->bind( array ); this->bind( array.getData(), Size ); } // methods for rebinding (reinitialization) Loading @@ -77,35 +77,11 @@ template< typename Element, typename Device, typename Index > __cuda_callable__ void ArrayView< Element, Device, Index >::bind( ArrayView& view ) void ArrayView< Element, Device, Index >::bind( ArrayView view ) { bind( view.getData(), view.getSize() ); } template< typename Element, typename Device, typename Index > template< typename Element_ > __cuda_callable__ void ArrayView< Element, Device, Index >:: bind( Array< Element_, Device, Index >& array ) { bind( array.getData(), array.getSize() ); } template< typename Element, typename Device, typename Index > template< int Size, typename Element_ > __cuda_callable__ void ArrayView< Element, Device, Index >:: bind( StaticArray< Size, Element_ >& array ) { bind( array.getData(), Size ); } // Copy-assignment does deep copy, just like regular array, but the sizes // must match (i.e. copy-assignment cannot resize). Loading Loading
src/TNL/Containers/ArrayView.h +3 −9 Original line number Diff line number Diff line Loading @@ -67,16 +67,10 @@ public: __cuda_callable__ void bind( Element* data, const Index size ); // Note that you can also bind directly to Array and other types implicitly // convertible to ArrayView. __cuda_callable__ void bind( ArrayView& view ); template< typename Element_ > // template catches both const and non-const qualified Element __cuda_callable__ void bind( Array< Element_, Device, Index >& array ); template< int Size, typename Element_ > // template catches both const and non-const qualified Element __cuda_callable__ void bind( StaticArray< Size, Element_ >& array ); void bind( ArrayView view ); // Copy-assignment does deep copy, just like regular array, but the sizes Loading
src/TNL/Containers/ArrayView_impl.h +2 −26 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ __cuda_callable__ ArrayView< Element, Device, Index >:: ArrayView( StaticArray< Size, Element_ >& array ) { this->bind( array ); this->bind( array.getData(), Size ); } // methods for rebinding (reinitialization) Loading @@ -77,35 +77,11 @@ template< typename Element, typename Device, typename Index > __cuda_callable__ void ArrayView< Element, Device, Index >::bind( ArrayView& view ) void ArrayView< Element, Device, Index >::bind( ArrayView view ) { bind( view.getData(), view.getSize() ); } template< typename Element, typename Device, typename Index > template< typename Element_ > __cuda_callable__ void ArrayView< Element, Device, Index >:: bind( Array< Element_, Device, Index >& array ) { bind( array.getData(), array.getSize() ); } template< typename Element, typename Device, typename Index > template< int Size, typename Element_ > __cuda_callable__ void ArrayView< Element, Device, Index >:: bind( StaticArray< Size, Element_ >& array ) { bind( array.getData(), Size ); } // Copy-assignment does deep copy, just like regular array, but the sizes // must match (i.e. copy-assignment cannot resize). Loading