Charles Greathouse on Tue, 25 Nov 2014 23:08:57 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: New gp function fold() |
2014-11-25 22:05 GMT+01:00 Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
> On Tue, Nov 25, 2014 at 03:08:26PM -0500, Charles Greathouse wrote:
>> We might consider a function (or flag) that folds by binary splitting. For
>> example, this could be used to keep subproducts small:
>
> Binary splitting is not necessarily useful for all associative operations.
Thus it sounds like a flag is useful !
> This is mostly useful for multiplication, and factorback() and lcm() already
> handles this case. Do you have other examples ?
>
> But as you say, the issue is that it would be awkward to document for
> non-associative operations.
Doc: if the operation is not associative, the result is random.
Loïc