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

To reply to this bug, email your comments to 14354 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#14354; Package guile. (Mon, 06 May 2013 05:26:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jez <jezreel <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Mon, 06 May 2013 05:26:05 GMT) Full text and rfc822 format available.

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

From: Jez <jezreel <at> gmail.com>
To: bug-guile <bug-guile <at> gnu.org>
Subject: Implement array-fold and array-fold-all
Date: Mon, 6 May 2013 01:23:46 -0400
[Message part 1 (text/plain, inline)]
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)]
[0001-Implement-array-fold-and-array-fold-all.patch (application/octet-stream, attachment)]

Information forwarded to bug-guile <at> gnu.org:
bug#14354; Package guile. (Mon, 06 May 2013 05:38:02 GMT) Full text and rfc822 format available.

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)]

Merged 14353 14354. Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Sat, 08 Jun 2013 08:55:01 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Sat, 08 Jun 2013 08:55:02 GMT) Full text and rfc822 format available.

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

Previous Next


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