mat: No panic on zero sized matrices
Created by: btracey
The code in issue #441 (closed) panics in blas
, but it should have panicked in mat
first somewhere. I'm not exactly sure where. The issue there is that Simplex
is calling MulVec with a 0x2 matrix times a length 2 vector. The dimensions work, and so MulVec doesn't panic, but since there's no real receiver, it does panic inside BLAS. I'm not sure what our policy should be on things like this. Should we forbade making matrices with 0 size, or should we be doing a case-by-case decision on what should happen with zero sized matrices (for example, 0 size could make sense with something like Stack
)?