GNU bug report logs - #14354
Implement array-fold and array-fold-all

Previous Next

Package: guile;

Reported by: Jez <jezreel <at> gmail.com>

Date: Mon, 6 May 2013 05:26:03 UTC

Severity: wishlist

Merged with 14353

Full log


Message #8 received at 14354 <at> debbugs.gnu.org (full text, mbox):

From: Jez <jezreel <at> gmail.com>
To: 14354 <at> debbugs.gnu.org
Subject: Re: bug#14354: Implement array-fold and array-fold-all
Date: Mon, 6 May 2013 01:36:24 -0400
[Message part 1 (text/plain, inline)]
Ah, I reread my code and realized that I could compare array-types using
eq? instead of equals?. I'll change that once I get feedback on the current
patch.

Jez


On Mon, May 6, 2013 at 1:23 AM, Jez <jezreel <at> gmail.com> wrote:

> Right now there are no library functions for folding over arrays (or
> bytevectors, etc.) This implements them. fold-all produces a single value
> regardless of the number of dimensions of the array; it is implemented on
> top of array-for-each. array-fold produces an array of rank n-1, where n is
> the rank of the original array.
>
> I'll write up documentation if the code looks acceptable.
>
> Regards,
> Jez
>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 12 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.