// CORRECT? Can the overflown value pass this assert?
TNL_ASSERT_TRUE(this->alignedRows!=0&&numMtxElmnts/this->alignedRows==this->rowLengths,"Ellpack cannot store this matrix. The number of matrix elements has overflown the value that IndexType is capable of storing");
"Ellpack cannot store this matrix. The number of matrix elements has overflown the value that IndexType is capable of storing");
// TNL_ASSERT_TRUE( this->alignedRows != 0 && numMtxElmnts / this->alignedRows == this->rowLengths, "Ellpack cannot store this matrix. The number of matrix elements has overflown the value that IndexType is capable of storing" );
}
// ORIGINAL from: https://stackoverflow.com/questions/1815367/catch-and-compute-overflow-during-multiplication-of-two-large-integers
// TNL_ASSERT_FALSE( this->alignedRows != 0 && numMtxElmnts / this->alignedRows != this->rowLengths, "Ellpack cannot store this matrix. The number of matrix elements has overflown the value that IndexType is capable of storing" );