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 22:03: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=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT X-Trace: blaine.gmane.org 1501794243 18865 195.159.176.226 (3 Aug 2017 21:04:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2017 21:04:03 +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 23:03:56 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 1ddNHU-0003r4-Vz for guile-user@m.gmane.org; Thu, 03 Aug 2017 23:03:45 +0200 Original-Received: from localhost ([::1]:51812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddNHa-0005ZK-PY for guile-user@m.gmane.org; Thu, 03 Aug 2017 17:03:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddNH8-0005Z0-OM for guile-user@gnu.org; Thu, 03 Aug 2017 17:03:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddNH4-0005gJ-E4 for guile-user@gnu.org; Thu, 03 Aug 2017 17:03:22 -0400 Original-Received: from wp424.webpack.hosteurope.de ([2a01:488:42:1000:50ed:85c1::]:49884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddNH4-0005bz-8g for guile-user@gnu.org; Thu, 03 Aug 2017 17:03:18 -0400 Original-Received: from host86-163-166-96.range86-163.btcentralplus.com ([86.163.166.96] helo=wedemob); authenticated by wp424.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1ddNGx-0007Bz-NN; Thu, 03 Aug 2017 23:03:11 +0200 X-X-Sender: jan@wedemob.home In-Reply-To: X-bounce-key: webpack.hosteurope.de;jan@wedesoft.de;1501794198;af125224; X-HE-SMSGID: 1ddNGx-0007Bz-NN 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:14017 Archived-At: I want to do something better than HornetsEye (Ruby library I developed). Maybe one can also use it to implement finite element simulations and neural networks. On Thu, 3 Aug 2017, Nala Ginrut wrote: > Looks promising! What's the plan about AIscm in the future? Is it aiming > for a library, or something research tool like Sage? > > 2017年8月3日 15:23,"Jan Wedekind" 写道: > >> 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 >>>> >>>> >>>> >