From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,80532c203ced41ef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed.freenet.ag!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ann: Mathpaqs, release Feb. 2011 Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <838f49da-9a83-49d1-b42e-64b45f9b2917@x13g2000vbe.googlegroups.com> Date: Tue, 22 Feb 2011 11:27:09 +0100 Message-ID: <1ib2wlicecaim$.1o25nuvllws3i.dlg@40tude.net> NNTP-Posting-Date: 22 Feb 2011 11:27:07 CET NNTP-Posting-Host: c373b098.newsspool1.arcor-online.net X-Trace: DXC=dK3HT`B\cNig`45cDR8l?oic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbniX0T=6Vh`h[6LHn;2LCVn[ On Tue, 22 Feb 2011 01:56:30 -0800, Nasser M. Abbasi wrote: > What packages or binding to which library should one use in Ada > to use sparse matrices? That depends on the type of sparseness, I guess. > In Matlab, almost all build-in functions that work with normal matrices, > also work as in with sparse matrices. Makes life very easy. > > To solve Ax=b, even when A is sparse, one can still write A\b. I don't understand the problem here. You can define a function function "/" (Left : My_Sparse_Matrix; Right : Vector) return Vector; It is not very common because solver usually returns some additional valuable information, which gets lost when the solver is wrapped into a function. > Is it possible to do something like this in Ada? There are number > of sparse libraries out there, but googling around, do not see > an Ada binding at this time. Do you see MATLAB bindings instead? You seem comparing MATLAB libraries with non-Ada ones. BTW, writing MATLAB bindings is much more complicated than doing Ada bindings. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de