Max Alekseyev on Mon, 08 Jan 2024 12:05:06 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

vec* functions on lists


In PARI/GP version 2.16.1 I see

? vecmin(List([1,2,3]))
%1 = List([1, 2, 3])

? vecprod(List([1,2,3]))
  ***   at top-level: vecprod(List([1,2,3]))
  ***                 ^----------------------
  *** vecprod: incorrect type in vecprod (t_LIST).
  ***   Break loop: type 'break' to go back to GP prompt

Can vector functions be extended to support List arguments (as if they were vectors)?

Regards,
Max