Commit a6931b0f authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixing setLike method in tnlMultiArray.

parent a1989d09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ bool tnlMultiArray< 1, Element, Device, Index > :: setDimensions( const tnlTuple

template< typename Element, typename Device, typename Index >
   template< typename MultiArray >
bool tnlMultiArray< 1, Element, Device, Index > :: setLike( const tnlMultiArray& multiArray )
bool tnlMultiArray< 1, Element, Device, Index > :: setLike( const MultiArray& multiArray )
{
   return setDimensions( multiArray. getDimensions() );
}
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ bool tnlMultiArray< 2, Element, Device, Index > :: setDimensions( const tnlTuple

template< typename Element, typename Device, typename Index >
   template< typename MultiArray >
bool tnlMultiArray< 2, Element, Device, Index > :: setLike( const tnlMultiArray& multiArray )
bool tnlMultiArray< 2, Element, Device, Index > :: setLike( const MultiArray& multiArray )
{
   return setDimensions( multiArray. getDimensions() );
}
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ bool tnlMultiArray< 3, Element, Device, Index > :: setDimensions( const tnlTuple

template< typename Element, typename Device, typename Index >
   template< typename MultiArray >
bool tnlMultiArray< 3, Element, Device, Index > :: setLike( const tnlMultiArray& multiArray )
bool tnlMultiArray< 3, Element, Device, Index > :: setLike( const MultiArray& multiArray )
{
   return setDimensions( multiArray. getDimensions() );
}
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ bool tnlMultiArray< 4, Element, Device, Index > :: setDimensions( const tnlTuple

template< typename Element, typename Device, typename Index >
   template< typename MultiArray >
bool tnlMultiArray< 4, Element, Device, Index > :: setLike( const tnlMultiArray& multiArray )
bool tnlMultiArray< 4, Element, Device, Index > :: setLike( const MultiArray& multiArray )
{
   return setDimensions( multiArray. getDimensions() );
}
+4 −4
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class tnlMultiArray< 1, Element, Device, Index > : public tnlArray< Element, Dev

   //! Set dimensions of the array using another array as a template
   template< typename MultiArray >
   bool setLike( const tnlMultiArray& v );
   bool setLike( const MultiArray& v );
   
   Index getElementIndex( const Index i ) const;

@@ -122,7 +122,7 @@ class tnlMultiArray< 2, Element, Device, Index > : public tnlArray< Element, Dev

   //! Set dimensions of the array using another array as a template
   template< typename MultiArray >
   bool setLike( const tnlMultiArray& v );
   bool setLike( const MultiArray& v );

   Index getElementIndex( const Index j, const Index i ) const;

@@ -192,7 +192,7 @@ class tnlMultiArray< 3, Element, Device, Index > : public tnlArray< Element, Dev

   //! Set dimensions of the array using another array as a template
   template< typename MultiArray >
   bool setLike( const tnlMultiArray& v );
   bool setLike( const MultiArray& v );

   Index getElementIndex( const Index k, const Index j, const Index i ) const;

@@ -262,7 +262,7 @@ class tnlMultiArray< 4, Element, Device, Index > : public tnlArray< Element, Dev

   //! Set dimensions of the array using another array as a template
   template< typename MultiArray >
   bool setLike( const tnlMultiArray& v );
   bool setLike( const MultiArray& v );

   Index getElementIndex( const Index l, const Index k, const Index j, const Index i ) const;

Loading