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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:44c4:: with SMTP id o187-v6mr1364276ita.41.1521223192182; Fri, 16 Mar 2018 10:59:52 -0700 (PDT) X-Received: by 2002:a9d:29b8:: with SMTP id n53-v6mr133409otb.11.1521223192045; Fri, 16 Mar 2018 10:59:52 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!2.eu.feeder.erje.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!e10-v6no662416itf.0!news-out.google.com!h73-v6ni1053itb.0!nntp.google.com!r195-v6no667929itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 16 Mar 2018 10:59:51 -0700 (PDT) In-Reply-To: <3792aade-acac-42f5-9555-9f42b85c8ac5@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1206:45c6:8b20:7d0e:b921:8c47:41e2; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:45c6:8b20:7d0e:b921:8c47:41e2 References: <3792aade-acac-42f5-9555-9f42b85c8ac5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <69fa81f6-39c5-4464-b638-51647285a559@googlegroups.com> Subject: Re: Mathpaqs release 13-Mar-2018 From: gautier_niouzes@hotmail.com Injection-Date: Fri, 16 Mar 2018 17:59:52 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:51034 Date: 2018-03-16T10:59:51-07:00 List-Id: Hi Vincent, > Just a few questions : > - why not use the standard Generic Real Arrays ? Good point! I'll update the web site with a remark from g_matrices.ads: "NB= : For Ada 2005+ and real numbers implemented as floating-point numbers, it = is better to use Ada.Numerics.Generic_Real_Arrays instead.". An usage of G_= Matrices can be for complex, rational, "bignum"-rationals, etc. ... > - Are the G_Matrices stored in Fortran convention, i.e. Column Major Orde= r ? By default not, but you can add a pragma Convention. > - Are they compatible with Blas & Lapack ? Some stuff in the lin_alg area is, but frankly it is a bit rusty (in my hea= d)... > - Are the SparseB matrices compatible with Matlab matrices (i.e. CSC matr= ices) SparseB is just a helper for Sparse package (I did it in Ada 83 around end = 1990's, it would be a private child package now (tbd)...). There are two bodies for sparseb: one standalone, one using Blas (sparseb.b= las.adb) > - Are both format interoperable ? > - Are they interchangeable, i.e is there a common class type to manipulat= e them? I've used for research purposes, interchangeably: - plain matrices, - band matrices (a matrix with zeroes outside diagonals and the cells just = above and below) and - sparse matrices. I did it through generics.