Bill Allombert on Tue, 06 Feb 2024 16:47:47 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: vec* functions on lists
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: vec* functions on lists
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Tue, 6 Feb 2024 16:47:43 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1707234464; c=relaxed/relaxed; bh=PWyFlRP+sbsQEvYN5FWV6X3u4Q52kZ/M9tnbks59SYI=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=qIk2R9nA3LCU2AC1jzAQOeXgQnyOlaPqBhurAHoy1XS74SwE1QQnwWD8/QU2wubDXEtjOsQ4zY/uKpGrrMvPTxo/cUnIvaMcTa7uUv731BKtCHHBNMrhBwHNPzFj4D8VUIpwAc8qCMxltYao+nsKqheYtO6exeb0mdEhuEmMu5DkDy08kQx2jLBfA6H7UH48gqTmFCxcSAGi5ulbnguEz5XY4Bb/UaPLzDR5wWHvaefYf1n6/oBo0nlRLnBbnCEFj3ZCVYoF2D4nBApAuFYWnx/lWU7G6/CIXeHjR8CfUHLbXvmCf5oC1tCf7MUJpVIHssdCwA1507ITKPrqDvatMgRfsahdjaVzQ/NGqxYbpyzoK9X9XCtV6L9lbmS2pCdEw21dSD67y0dj/icAqFuIXvVuC3TBh/H7FJUoE9/JAo0VUzlfwub3UktKmlXJdHTHGgCaKYgx4+LZgT8FNooy3Ao3yBoBAkBAVpuE3Z1qtr0VC9qewYNWCboqsKtZzEnvxkCyQujd7mr/q+osVHdohLx0kWtJ3NAp7qwvdCPd9yb7tGI7L2IsSi6mVvGS5y5ElXyP2VKVxwuzGhxOWQI9Nldkm4Usrbck/NkOJfTKvfCT3BAj9rZP3EAFBPDBOraZc1wc6ggk9W16LL7ZGYrS4cWHKNSbH3Bnz2WCOouXLcE=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1707234464; cv=none; b=WmeA5BGC8zN7BG0bkyZbLIPEPxYuDnDqKPH8Ln+Vs3cmTDoYuL/j9S09CS0dCMCHQK0OW3ovHQvC58fF812R0P63tn14OEGTEeKjv5/gVOeL+/MrGzJ4LAY00uLNHAYWVB1esj1fKr+F8NfetvxbhrH1gJ6ewIJdvxdQ+zO5I3JyErJZTCagrSMHoCPPmjICuROB1oAePB9eoSYnhnG0zTZ6rcGvMrBNXVpXrw4y5pcix9/stg/OwdVXnyApU8CynploDyQl5q7SuusqiU9cse0yIAnQZh4JESYm1bzix4q9HalrsfNkCPPnz7rXT0cxPADp9FcPBdzDK+UK9UVIWxR1Ngx2ObkZPr68P7Fwj5RewSTi4+rUJloXAtL981UZVPCx45XN0YvTyJuk0HYPBsA4X7GmDRNLkXME0M0fYd1Jh0jKwiuI2DTgKNpk0Fc9X0iceq+iRpW0U4hJ+cLrTFNTXHWJP9t9bcWrTXmCRqYMnFxVMd/VF970wB0ysQ4t4x1YGI/Hv85AlfodAGUsGC2Ao4yoo1KcJf7QBOYTiWmuBTitMVkv5H6zfFhZqkSvV3WJ032G4b3lQoanyKMXEdFccEmvpUJhbSkTAh6/DzMzoSlgRO0HN5LRgXMshsfbwJyjwGM/MwNFHLlo732C9UaFynrNAiYe9iCCtfM574U=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Tue, 06 Feb 2024 16:47:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1707234464; bh=PWyFlRP+sbsQEvYN5FWV6X3u4Q52kZ/M9tnbks59SYI=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Svgxs0P++PBIhOSd1mPtTvSKYa/TGB2t+zDHvifeJBpdJ8f5rFvW8BgDrMqWMUlt8 22n3EO8A+T5bbfR2rjtAZELyQIaRlVC+rhfmomn4W/bxObQKgenqUB2kARzEhcGCv+ r1of+nkxUBO25l9OnAx9zK+nJDMcZNK6Ua9MxfV6VXrpWL39mHvQ8zFyVugukF2S2W AO+TUguRRTPUv9jOCQUdl88ZCGnotaPDwv+pHsknpUGsZCLbVFb4BP+Iso2g0dPQ+S /K28mmFgk0e2kZMRqLsYYqvGYn5Clj3IG5cg0NQCgJakszTXDPT71eHt7czcWsETFu FVmlIGTJkWu84vKlMys5cEXVANiIqWhmhde4P9VhQAudzhOFDBFzb5GHBRvhVrC9iy pPyDIf633nZwhVxl0X2ASaKz7JM6qkYB1pgAX8/6TG0JJ/d4iNZc3zTx6nrC1hPCaE 9UGJMOrQzyoLjvGd5/iWyRKpc2aCi68R4LQduHCEMvj0dOUjCC9ufwp676a6y4urZ6 Q6x/4jHEld2Z5nTLls1tQ/2tbk7a7xASbSOkPgdiMiLUAdtSS64idn0rb9jZnReEHK E8/LN98Ya51X9BGFSQlXVSm2rGc423aXQO1HIEqLuP5yOR02LBvTnEVcbLD3CjUoLB 03cJ8qVWDn4SEup9iPvH/ACo=
- In-reply-to: <CAJkPp5N9gxDvYBU5boNOj1Y0QHy5_DjUG0Pbwm-gb40mTLQhAQ@mail.gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5N9gxDvYBU5boNOj1Y0QHy5_DjUG0Pbwm-gb40mTLQhAQ@mail.gmail.com>
On Mon, Jan 08, 2024 at 06:04:27AM -0500, Max Alekseyev wrote:
> 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)?
As a rule, I convert lists to vectors as soon as I have finished to fill them.
I always do
fun(...) = my(L=List());....;Vec(L);
Cheers,
Bill