Commit 07ae4390 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed assert in Matrix::setDimensions to allow zero dimensions

parent 22b2b812
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ template< typename Real,
void Matrix< Real, Device, Index, RealAllocator >::setDimensions( const IndexType rows,
                                                   const IndexType columns )
{
   TNL_ASSERT( rows > 0 && columns > 0,
   TNL_ASSERT( rows >= 0 && columns >= 0,
               std::cerr << " rows = " << rows << " columns = " << columns );
   this->rows = rows;
   this->columns = columns;