flint icon indicating copy to clipboard operation
flint copied to clipboard

Initializing a `gr_mat` with -1 rows and -1 columns succeeds and allocates one entry

Open rburing opened this issue 10 months ago • 1 comments

Probably there should be an error/crash instead, when either the number of rows or the number of columns is negative.

The same applies to (all?) other matrix types.

rburing avatar Feb 03 '25 13:02 rburing

Or clarify in the documentation that we assume that the number of rows and columns are valid.

albinahlback avatar Feb 03 '25 13:02 albinahlback