Commit 583a58ac authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added missing getSerializationType methods to matrices

parent 0f61e4cb
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ getType()
          TNL::getType< Element >() + ", " +
          Device::getDeviceType() + ", " +
          TNL::getType< Index >() + " >";
};
}

template< typename Element,
          typename Device,
@@ -114,7 +114,7 @@ Array< Element, Device, Index >::
getTypeVirtual() const
{
   return this->getType();
};
}

template< typename Element,
          typename Device,
@@ -124,7 +124,7 @@ Array< Element, Device, Index >::
getSerializationType()
{
   return HostType::getType();
};
}

template< typename Element,
          typename Device,
@@ -134,7 +134,7 @@ Array< Element, Device, Index >::
getSerializationTypeVirtual() const
{
   return this->getSerializationType();
};
}

template< typename Element,
          typename Device,
+4 −0
Original line number Diff line number Diff line
@@ -52,6 +52,10 @@ class CSR : public Sparse< Real, Device, Index >

   String getTypeVirtual() const;

   static String getSerializationType();

   virtual String getSerializationTypeVirtual() const;

   void setDimensions( const IndexType rows,
                       const IndexType columns );

+16 −0
Original line number Diff line number Diff line
@@ -58,6 +58,22 @@ String CSR< Real, Device, Index >::getTypeVirtual() const
   return this->getType();
}

template< typename Real,
          typename Device,
          typename Index >
String CSR< Real, Device, Index >::getSerializationType()
{
   return HostType::getType();
}

template< typename Real,
          typename Device,
          typename Index >
String CSR< Real, Device, Index >::getSerializationTypeVirtual() const
{
   return this->getSerializationType();
}

template< typename Real,
          typename Device,
          typename Index >
+4 −0
Original line number Diff line number Diff line
@@ -81,6 +81,10 @@ class ChunkedEllpack : public Sparse< Real, Device, Index >

   String getTypeVirtual() const;

   static String getSerializationType();

   virtual String getSerializationTypeVirtual() const;

   void setDimensions( const IndexType rows,
                       const IndexType columns );

+16 −0
Original line number Diff line number Diff line
@@ -55,6 +55,22 @@ String ChunkedEllpack< Real, Device, Index >::getTypeVirtual() const
   return this->getType();
}

template< typename Real,
          typename Device,
          typename Index >
String ChunkedEllpack< Real, Device, Index >::getSerializationType()
{
   return getType();
}

template< typename Real,
          typename Device,
          typename Index >
String ChunkedEllpack< Real, Device, Index >::getSerializationTypeVirtual() const
{
   return this->getSerializationType();
}

template< typename Real,
          typename Device,
          typename Index >
Loading