comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: Lapack Ada binding matrices/vectors issue, how to best to resolve?
Date: Wed, 11 Jul 2012 19:45:01 -0500
Date: 2012-07-11T19:45:01-05:00	[thread overview]
Message-ID: <jtl6me$gdt$1@speranza.aioe.org> (raw)
In-Reply-To: jtl6av$frs$1@speranza.aioe.org

On 7/11/2012 7:38 PM, Nasser M. Abbasi wrote:
>
> ---------------------------
> with Interfaces.Fortran; use Interfaces.Fortran;
> with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays;
> with labase; use labase;  -- LAPACK binding
>
> procedure foo3 is
>
>     A1 : constant Fortran_Real_Matrix(1..2,1..2):=
>           12.0*((12.0,  6.0),(-12.0, 6.0)); -- ERROR
>
>     A2 : constant Real_Matrix(1..2,1..2) :=
>            12.0*((12.0,  6.0),(-12.0,  6.0)); -- OK
>     begin
>       null;
> end foo3;
> --------------------
>

opps that should be foo3.adb in the command below (I copied the file content
to new file and named it foo3, but pasted the older command on the window which
was foo2.adb)

>> gnatmake -gnat2012 -I/lapada/ada  foo2.adb -largs -lblas
> gcc -c -gnat2012 -I/lapada/ada foo2.adb
> foo2.adb:24:20: expected type "Fortran_Real_Matrix" defined at labase.ads:94
> foo2.adb:24:20: found type "Interfaces.Fortran.Complex"
> gnatmake: "foo2.adb" compilation error
>>
>

here is the command again:

>gnatmake -gnat2012 -I/lapada/ada  foo3.adb -largs -lblas
gcc -c -gnat2012 -I/lapada/ada foo3.adb
foo3.adb:10:13: expected type "Fortran_Real_Matrix" defined at labase.ads:94
foo3.adb:10:13: found type "Complex_Star_16" defined at labase.ads:52
gnatmake: "foo3.adb" compilation error
>

(I just did not want someone to get confused if they saw this).

--Nasser




  reply	other threads:[~2012-07-12  0:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12  0:38 Lapack Ada binding matrices/vectors issue, how to best to resolve? Nasser M. Abbasi
2012-07-12  0:45 ` Nasser M. Abbasi [this message]
2012-07-12 12:35 ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox