Skip to content

Commit 778c24f

Browse files
committed
Fixed also for nonblocking backend
1 parent 1cef122 commit 778c24f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/graphblas/nonblocking/blas2.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,19 @@ namespace grb {
499499
if( nnz( v ) < size( v ) ) {
500500
#ifdef _DEBUG
501501
std::cout << "\t Dense descriptor given but input vector was sparse\n";
502+
#endif
503+
return ILLEGAL;
504+
}
505+
if( nnz( u ) < size( u ) ) {
506+
#ifdef _DEBUG
507+
std::cout << "\t Dense descriptor given but output vector was sparse\n";
508+
#endif
509+
return ILLEGAL;
510+
}
511+
if( size( mask ) > 0 && nnz( mask ) < size( mask ) ) {
512+
#ifdef _DEBUG
513+
std::cout << "\t Dense descriptor given but output mask has sparse "
514+
<< "structure\n";
502515
#endif
503516
return ILLEGAL;
504517
}

0 commit comments

Comments
 (0)