Commit 22471eef authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Replaced the deprecated method setCompressedRowLengths with setRowCapacities

parent 02b75636
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -64,6 +64,8 @@ public:

   void setCompressedRowLengths( ConstCompressedRowLengthsVectorView rowLengths );

   void setRowCapacities( ConstCompressedRowLengthsVectorView rowLengths );

   void getCompressedRowLengths( CompressedRowLengthsVectorView rowLengths ) const;

	IndexType getRowLength( const IndexType row ) const;
+10 −0
Original line number Diff line number Diff line
@@ -104,6 +104,16 @@ setCompressedRowLengths( ConstCompressedRowLengthsVectorView constRowLengths )
    return this->allocateMatrixElements( this->warpSize * this->groupPointers.getElement( strips * ( this->logWarpSize + 1 ) ) );
}

template< typename Real,
	  typename Device,
	  typename Index >
void
BiEllpack< Real, Device, Index >::
setRowCapacities( ConstCompressedRowLengthsVectorView constRowLengths )
{
   setCompressedRowLengths( constRowLengths );
}

template< typename Real,
          typename Device,
          typename Index >
+2 −0
Original line number Diff line number Diff line
@@ -101,6 +101,8 @@ public:

   void setCompressedRowLengths( ConstCompressedRowLengthsVectorView rowLengths );

   void setRowCapacities( ConstCompressedRowLengthsVectorView rowLengths );

   IndexType getRowLength( const IndexType row ) const;

   __cuda_callable__
+8 −0
Original line number Diff line number Diff line
@@ -245,6 +245,14 @@ void ChunkedEllpack< Real, Device, Index >::setCompressedRowLengths( ConstCompre
   Sparse< Real, Device, Index >::allocateMatrixElements( elementsToAllocation );
}

template< typename Real,
          typename Device,
          typename Index >
void ChunkedEllpack< Real, Device, Index >::setRowCapacities( ConstCompressedRowLengthsVectorView rowLengths )
{
   setCompressedRowLengths( rowLengths );
}

template< typename Real,
          typename Device,
          typename Index >
+2 −0
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ public:

   void setCompressedRowLengths( ConstCompressedRowLengthsVectorView rowLengths );

   void setRowCapacities( ConstCompressedRowLengthsVectorView rowLengths );

   void getCompressedRowLengths( CompressedRowLengthsVectorView rowLengths ) const;

   void setConstantCompressedRowLengths( const IndexType& rowLengths );
Loading