Re: vecsum a Vecsmall

Bill Allombert <[email protected]> Sun, 1 Mar 2026 14:47:10 +0100
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <aaQ_OXpNB72guZG7@seventeen>
On Sun, Mar 01, 2026 at 02:00:06PM +0100, Ruud H.G. van Tol wrote:
> Somewhat related:
> 
> ? setisset(Vec([1,2,42]))
> %2 = 1
> 
> ? setisset(Vecsmall([1,2,42]))
> %3 = 0
> 
> I think that should either return 1, or give an error on bad input-type.

setisset returns 0 for all types except t_VEC:

? setisset(x+1)
%7 = 0
? setisset(Pi)
%8 = 0
? setisset(Col([1,2,42]))
%9 = 0

Cheers,
Bill.