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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,26e047a7a0709881 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.227.67 with SMTP id ry3mr825516pbc.8.1342066438592; Wed, 11 Jul 2012 21:13:58 -0700 (PDT) Path: l9ni11515pbj.0!nntp.google.com!news2.google.com!postnews.google.com!gg7g2000pbc.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: How to initialize a matrix of one column only? Date: Wed, 11 Jul 2012 21:13:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0c28fbcd-989b-4b47-ad2d-75e4cfeb425b@gg7g2000pbc.googlegroups.com> References: <4d3d481d-a179-44f6-a81d-04a0531641ad@y3g2000pbc.googlegroups.com> NNTP-Posting-Host: 97.117.192.250 Mime-Version: 1.0 X-Trace: posting.google.com 1342066438 8295 127.0.0.1 (12 Jul 2012 04:13:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 12 Jul 2012 04:13:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: gg7g2000pbc.googlegroups.com; posting-host=97.117.192.250; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_7_4; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-11T21:13:58-07:00 List-Id: On Jul 9, 2:35=A0am, Simon Wright wrote: > > I wish these bindings would be rewritten to use Annex G.3 Real_Vector > > and Real_Matrix (etc. for complex) so that a single set of types can > > be used in a program that uses the G.3 stuff anyway. > > The problem with that is that the BLAS is a Fortran library, so expects > Fortran conventions for matrices. The Ada_BLAS bindings are thin, so > don't do the transposition required . > > The old GNAT Ada.Numerics.Generic_{Real,Complex}_Arrays did the > transposition explicitly. > > There was a discussion about this (and performance aspects) on this > group:http://groups.google.com/group/comp.lang.ada/browse_frm/thread/5395= b8... OS X ships with both Fortran and C versions of BLAS and LAPACK, so I would suppose the C version is common. Wouldn't using the C versions solve this problem? As I recall, both Ada and C are row major. Jerry