From: Simon Wright <simon@pushface.org>
Subject: Re: How to initialize a matrix of one column only?
Date: Mon, 09 Jul 2012 10:35:53 +0100
Date: 2012-07-09T10:35:53+01:00 [thread overview]
Message-ID: <m28vet1dl2.fsf@nidhoggr.home> (raw)
In-Reply-To: 4d3d481d-a179-44f6-a81d-04a0531641ad@y3g2000pbc.googlegroups.com
Jerry <lanceboyle@qwest.net> writes:
> On Jul 7, 5:08 pm, "Nasser M. Abbasi" <n...@12000.org> wrote:
>
>> where the labase package simply introduces a type for
>> Fortran_Real_Matrix as follows
>>
>> ----------------------------
>> type Fortran_Real_Matrix is array (Fortran_Integer range <>,
>> Fortran_Integer range <>)
>> of Real;
>> pragma Convention (Fortran, Fortran_Real_Matrix);
>
> 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/5395b8f41548bf11/37bcbb133b8d5a62?lnk=gst&q=sauvage#37bcbb133b8d5a62
next prev parent reply other threads:[~2012-07-09 9:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-08 0:08 How to initialize a matrix of one column only? Nasser M. Abbasi
2012-07-08 0:20 ` Nasser M. Abbasi
2012-07-08 1:47 ` John B. Matthews
2012-07-08 2:09 ` Nasser M. Abbasi
2012-07-08 17:05 ` Brian Drummond
2012-07-13 15:19 ` Robert A Duff
2012-07-13 16:11 ` gautier_niouzes
2012-07-08 7:27 ` Simon Wright
2012-07-08 7:43 ` Stephen Leake
2012-07-08 22:56 ` Jerry
2012-07-09 9:35 ` Simon Wright [this message]
2012-07-12 4:13 ` Jerry
2012-07-12 8:50 ` Simon Wright
2012-07-13 23:15 ` Jerry
2012-07-14 9:46 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox