From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Wedekind Newsgroups: gmane.lisp.guile.user Subject: Re: AIscm array operations for Scheme Date: Thu, 3 Aug 2017 08:23:10 +0100 (BST) Message-ID: References: Reply-To: Jan Wedekind NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=ISO-2022-JP; format=flowed X-Trace: blaine.gmane.org 1501745038 5193 195.159.176.226 (3 Aug 2017 07:23:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2017 07:23:58 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Guile User To: Nala Ginrut Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Aug 03 09:23:50 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddATz-0000r1-R0 for guile-user@m.gmane.org; Thu, 03 Aug 2017 09:23:47 +0200 Original-Received: from localhost ([::1]:43052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddAU5-0007ki-Ly for guile-user@m.gmane.org; Thu, 03 Aug 2017 03:23:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddATh-0007kZ-DK for guile-user@gnu.org; Thu, 03 Aug 2017 03:23:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddATe-0006C1-3K for guile-user@gnu.org; Thu, 03 Aug 2017 03:23:29 -0400 Original-Received: from wp424.webpack.hosteurope.de ([2a01:488:42:1000:50ed:85c1::]:34924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddATd-0006B6-T6 for guile-user@gnu.org; Thu, 03 Aug 2017 03:23:26 -0400 Original-Received: from [213.205.194.250] (helo=wedemob); authenticated by wp424.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1ddATY-0003mg-Vc; Thu, 03 Aug 2017 09:23:23 +0200 X-X-Sender: jan@wedemob.home In-Reply-To: Content-ID: X-bounce-key: webpack.hosteurope.de;jan@wedesoft.de;1501745005;17916d4b; X-HE-SMSGID: 1ddATY-0003mg-Vc X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:488:42:1000:50ed:85c1:: X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14015 Archived-At: Thanks. Currently neither. I have in mind to add some LAPACK bindings (singular value decomposition, eigenvalue decomposition, least squares to begin with). First full native floating point support needs to be implemented. Here is an example of a matrix vector product: (use-modules (aiscm sequence) (aiscm expression) (aiscm tensor)) (tensor i (sum k (* (get (arr (2 3) (5 7)) i k) (get (arr 11 13) k)))) $3 = #>>: (87 124) Floating point values currently fall back on Scheme objects: (tensor i (sum k (* (get (arr (2 3) (5 7)) i k) (get (arr 1.1 1.3) k)))) $4 = #>: (8.7 12.4) Note that in this case the array loops are still JIT compiled. Addition and multiplication are handled by JIT compiling callbacks into GNU Guile (scm_plus, scm_product). Regards Jan On Thu, 3 Aug 2017, Nala Ginrut wrote: > Nice work! > Do you use BLAS or MKL for vector operation? > > > 2017年8月3日 04:16,"Jan Wedekind" 写道: > >> Hi, >> I have released a new version of AIscm [1]. A Guile extension for >> numerical arrays and tensors. It now supports convolutions [2] and tensor >> operations [3]. There are packages for different versions of Debian and >> Ubuntu. Also thanks to Andrey Rahmatullin's sponsorship, the package is >> part of Debian Testing [4]. >> >> Regards >> Jan >> >> [1] http://wedesoft.github.io/aiscm/ >> [2] http://wedesoft.github.io/aiscm/convolution.html >> [3] http://wedesoft.github.io/aiscm/operation.html#tensor-operations >> [4] https://tracker.debian.org/pkg/aiscm >> >> >