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

Previous Next

Package: guile;

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

Date: Mon, 6 May 2013 04:37:02 UTC

Severity: wishlist

Merged with 14354

Full log


View this message in rfc822 format

From: Jez <jezreel <at> gmail.com>
To: 14353 <at> debbugs.gnu.org
Subject: bug#14353: Implement array-fold and array-fold-all
Date: Sun, 5 May 2013 23:32:26 -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)]

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.