Skip to content
Snippets Groups Projects
Commit 5d1b4859 authored by Lukas Cejka's avatar Lukas Cejka
Browse files

Reformatted code.

parent ad1b4af6
No related branches found
No related tags found
1 merge request!16Matrices
......@@ -83,14 +83,10 @@ public:
__cuda_callable__
IndexType getRowLengthFast( const IndexType row ) const;
#ifdef HAVE_CUDA
//__device__
//void getNonZeroRowLengthCudaKernel( const MatrixRow row, typename MatrixRow::IndexType* result );
IndexType getNonZeroRowLength( const IndexType row ) const;
IndexType getNonZeroRowLengthFast( const IndexType row ) const;
#endif
template< typename Real2, typename Device2, typename Index2 >
void setLike( const CSR< Real2, Device2, Index2 >& matrix );
......
......@@ -138,6 +138,7 @@ Index CSR< Real, Device, Index >::getNonZeroRowLength( const IndexType row ) con
{
// TODO: Fix/Implement
TNL_ASSERT( false, std::cerr << "TODO: Fix/Implement" );
return 0;
// if( std::is_same< DeviceType, Devices::Host >::value )
// {
// ConstMatrixRow matrixRow = this->getRow( row );
......
......@@ -135,6 +135,7 @@ getNonZeroElementsCount() const
{
// TODO: Fix/Implement
TNL_ASSERT( false, std::cerr << "TODO: Fix/Implement" );
return 0;
// using NonConstIndex = typename std::remove_const< Index >::type;
//
// NonConstIndex elementCount ( 0 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment