MatrixObj
doesn't check the ncols
- while creating
#5135
Labels
gapdays2022-summer
Issues and PRs that arose at https://www.gapdays.de/gapdays2022-summer
kind: bug
Issues describing general bugs, and PRs fixing them
Observed behaviour
I created the MatrixObj with the command
Matrix( R, list, ncols )
. Aslist
I put an 1x3 matrix, but for thencols
parameter I put 4. However, the MatrixObj was created. I tried to access the element (1,4) and GAP gave me an error.Expected behaviour
I would expect either change in the
ncols
parameter or adding an empty elements to the matrix.GAP example
The text was updated successfully, but these errors were encountered: