Newer
Older
/***************************************************************************
-------------------
begin : Dec 19, 2014
copyright : (C) 2014 by Tomas Oberhuber
email : tomas.oberhuber@fjfi.cvut.cz
***************************************************************************/
/* See Copyright Notice in tnl/Copyright */
#include <type_traits>
#include <TNL/Devices/Cuda.h>
Real* values,
const Index length,
const Index step );
void bind( Index* columns,
Real* values,
const Index length,
const Index step );
__cuda_callable__
const Index& getElementColumn( const Index& elementIndex ) const;
__cuda_callable__
const Real& getElementValue( const Index& elementIndex ) const;
__cuda_callable__
Index getLength() const;
template< typename Real, typename Index >
std::ostream& operator << ( std::ostream& str, const SparseRow< Real, Index >& row )
{
row.print( str );
return str;
}