From: David Pirotte <david@altosw.be>
To: Zelphir Kaltstahl <zelphirkaltstahl@gmail.com>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: Matrix or array operations library
Date: Tue, 25 Dec 2018 15:12:37 -0200 [thread overview]
Message-ID: <20181225151237.1b0090c0@capac> (raw)
In-Reply-To: <7a362a59-3a4d-44c8-f4cd-5b232b6dffce@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]
Hello,
> Is there some library, that enables high performance matrix operations
> or even n-dimensional array operations? I am thinking of something like
> NumPy in the Python ecosystem. I think NumPy in turn also uses some
> lower level thing to do what it does. I think OpenBLAS or MKL, depending
> on the architecture. I wonder if there is any wrapper around OpenBLAS
> for Guile or something similar.
> ...
There are quite a few libs you might look at before you start to code your own:
https://notabug.org/lloda
...
guile-newra
guile-ffi-cblas
...
guile-ploy
...
AIscm
http://wedesoft.github.io/aiscm
I also wrote a set of n-dim array math ops (including matrix ops) for Guile-CV:
https://www.gnu.org/software/guile-cv/
the manual is available online, math and matrix ops are described in
the 'Processing' section
mentioning Guile-CV because images are just a collection of n-dim arrays.
(see 'Image Structure and Accessors' in the manual).
in Guile-CV, all (almost all) arrays are f32vectors - see (srfi srfi-4) in
the Guile manual - math and matrix ops are written in C (but memory
allocation entirely kept in scheme). multi channel ops are multi-threaded
some of these math and matrix ops also work on s32 and f64 (undocumented so
far): it would not take much to actually fully generalize all guile-cv math
and matrix ops for the full set of (srfi srfi-4 ) types.
Cheers,
David
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2018-12-25 17:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c2172031-a0a6-9dd3-6ceb-7b6d94648475@gmail.com>
2018-12-24 22:01 ` Matrix or array operations library Zelphir Kaltstahl
2018-12-24 23:06 ` Tk
2018-12-25 0:21 ` Matt Wette
2018-12-25 0:32 ` ndarray [was: Matrix or array operations library] Matt Wette
2018-12-25 17:12 ` David Pirotte [this message]
2019-06-02 21:44 ` Matrix or array operations library Linas Vepstas
[not found] <mailman.73.1545757221.8862.guile-user@gnu.org>
2018-12-26 11:38 ` Zelphir Kaltstahl
2018-12-27 14:20 ` Matt Wette
2018-12-27 14:38 ` Mike Gran
[not found] <mailman.108.1545930019.12294.guile-user@gnu.org>
2018-12-27 18:43 ` Daniel Llorens
2018-12-27 21:24 ` John Cowan
2018-12-27 22:24 ` Matt Wette
[not found] <mailman.32929.1546007691.1283.guile-user@gnu.org>
2018-12-28 20:23 ` Daniel Llorens
2018-12-28 23:16 ` John Cowan
2018-12-29 0:17 ` Daniel Llorens
2019-01-27 18:41 ` Matt Wette
2018-12-28 23:24 ` Matt Wette
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181225151237.1b0090c0@capac \
--to=david@altosw.be \
--cc=guile-user@gnu.org \
--cc=zelphirkaltstahl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).