comp.lang.ada
 help / color / mirror / Atom feed
* Re: Math Lib. for Ada? Ada for X11R6?
       [not found]   ` <3fcf8f$dm6@Starbase.NeoSoft.COM>
@ 1995-01-16 17:53     ` Robert Dewar
  1995-01-18 20:50     ` Matt Kennel
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1995-01-16 17:53 UTC (permalink / raw)


OK, I understand that math libraries may go beyond the RM stuff, but surely
this is a case where it makes little sense to reinvent the wheel. If we have
good interface to Fortran, then using existing FOrtran libraries makes
good sense.

Perhaps we need a nice Ada layer on top of them in some cases, but I 
certainly would not try to rewrite them.

Note: version 2.01 of GNAT fully supports interface to Fortran, including
storing arrays columnwise if pragma Convention FOrtran is applied to an
array type. We haven't tested this out much yet, perhaps someone interested
in interfacing to this kind of library can see if it works!




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Math Lib. for Ada? Ada for X11R6?
       [not found]   ` <3fcf8f$dm6@Starbase.NeoSoft.COM>
  1995-01-16 17:53     ` Math Lib. for Ada? Ada for X11R6? Robert Dewar
@ 1995-01-18 20:50     ` Matt Kennel
  1995-01-20  5:27       ` Robert Dewar
  1 sibling, 1 reply; 3+ messages in thread
From: Matt Kennel @ 1995-01-18 20:50 UTC (permalink / raw)


David Weller (dweller@Starbase.NeoSoft.COM) wrote:
: In article <3fbtk3$50o@gnat.cs.nyu.edu>, Robert Dewar <dewar@cs.nyu.edu> wrote:
: >Will there ever be a freeware version of the math library
: >there is, see GNAT!
: >

: I think the original poster's question was aimed at math libraries
: that go beyond elementary functions and complex number support.

If you have column-major matrices, then writing glue for many standard
matrix routines (in fortran) should be easy.

For instance, make a matrix package that uses BLAS for computation,
and a slightly fancier matrix packages that uses BLAS and LAPACK.

BLAS and LAPACK have abtruse routine names and irritating call
protocols that could be fixed by a real language with little problem.
{That's what I'm doing for Sather.}

It gets much harder when you have to deal with Fortran packages that take
fortran routines as callbacks, e.g. ODE integrators, function minimizers, or
PDE solvers, that also tend to use Jurassic forms of data storage and
manipulation.

There are many major Fortran packages like this that people use.  

These are the tough ones to deal with.

: -- 
:        Frustrated with C/C++, Pascal, Fortran?  Ada95 _might_ be for you!
: 	  For all sorts of interesting Ada95 tidbits, run the command:
: "finger dweller@starbase.neosoft.com | more" (or e-mail with "finger" as subj.)
: 	

--
-Matt Kennel  		mbk@inls1.ucsd.edu
-Institute for Nonlinear Science, University of California, San Diego
-*** AD: Archive for nonlinear dynamics papers & programs: FTP to
-***     lyapunov.ucsd.edu, username "anonymous".



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Math Lib. for Ada? Ada for X11R6?
  1995-01-18 20:50     ` Matt Kennel
@ 1995-01-20  5:27       ` Robert Dewar
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1995-01-20  5:27 UTC (permalink / raw)


"It [interfacing Fortran] gets much harder when you have to deal with
 packages that take Fortran routines for callbacks."

At least in GNAT, and I would hope in all Ada 95 compilers, there is
no trouble in passing Fortran routines for callbacks, or indeed passing
routines written in Ada (with pragma Convention Fortran) for this purpose.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-01-20  5:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <D2Dq0t.Mo4@acsu.buffalo.edu>
     [not found] ` <3fbtk3$50o@gnat.cs.nyu.edu>
     [not found]   ` <3fcf8f$dm6@Starbase.NeoSoft.COM>
1995-01-16 17:53     ` Math Lib. for Ada? Ada for X11R6? Robert Dewar
1995-01-18 20:50     ` Matt Kennel
1995-01-20  5:27       ` Robert Dewar

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