Commit f14c1839 authored by Libor's avatar Libor
Browse files

metody save/load

parent be3c1d90
Loading
Loading
Loading
Loading
+336 −192

File changed.

Preview size limit exceeded, changes collapsed.

+15 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
template< typename Device >
class tnlBiEllpackMatrixDeviceDependentCode;

template< typename Real, typename Device = tnlCuda, typename Index = int >
template< typename Real, typename Device = tnlCuda, typename Index = int, int StripSize = 32 >
class tnlBiEllpackMatrix : public tnlSparseMatrix< Real, Device, Index >
{
public:
@@ -34,6 +34,9 @@ public:

	IndexType getRowLength( const IndexType row ) const;

	template< typename Real2, typename Device2, typename Index2 >
	bool setLike( const tnlBiEllpackMatrix< Real2, Device2, Index2, StripSize >& matrix );

	void getRowLengths( tnlVector< IndexType, DeviceType, IndexType >& rowLengths ) const;

	bool setElement( const IndexType row,
@@ -95,6 +98,17 @@ public:

	void print( ostream& str ) const;

#ifdef HAVE_CUDA
	template< typename InVector,
			  typename OutVector,
			  int warpSize>
	__device__
	void spmvCuda( const InVector& inVector,
				   OutVector& outVector,
				   const IndexType warpStart,
				   const IndexType inWarpIdx ) const;
#endif

	typedef tnlBiEllpackMatrixDeviceDependentCode< DeviceType > DeviceDependentCode;
	friend class tnlBiEllpackMatrixDeviceDependentCode< DeviceType >;