vecsum a Vecsmall
"Ruud H.G. van Tol" <[email protected]> Sun, 1 Mar 2026 11:55:33 +0100
| Newsgroups | gmane.comp.mathematics.pari.user |
|---|---|
| Message-ID | <[email protected]> |
vecsum() doesn't "transparently allow a t_VECSMALL" yet, or a List(), where for example vecsearch() and vecsort() do. As do vecmin(), vecmax(), but their docs don't mention it explicitly. Is vecsum() more limited on purpose? -- Greetings, Ruud BTW, not even that small. On 64-bit: ? Vecsmall([ -2^63+1, 2^63-1 ]) %1 = Vecsmall([-9223372036854775807, 9223372036854775807]) Potentially confusing: ? setisset(Vec([1,2,42])) %2 = 1 ? setisset(Vecsmall([1,2,42])) %3 = 0 (shouldn't that error?)