|
From: | John W. Eaton |
Subject: | Rethinking octave_idx_type |
Date: | Fri, 25 Nov 2016 12:21:47 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
Instead, it seems that we could define octave_idx_type to be ssize_t (or ptrdiff_t, I think they are equivalent in practice). Then things like fread, fwrite, or simple element-by-element array operations that don't require BLAS or LAPACK functions could work on larger arrays.
Then we would also define something like fortran_integer_type for the Fortran-style function interfaces and check array sizes and limits when we actually call the Fortran-style functions.
Does anyone see a reason NOT to do this? jwe
[Prev in Thread] | Current Thread | [Next in Thread] |