Re: solve linear systems in boost::numerics::ublas

From: Oleg Trott (oleg_trott_at_columbia.edu)
Date: 02/20/04


Date: Fri, 20 Feb 2004 16:44:09 -0500

Tino wrote:

>> Oleg Trott wrote:
>>
>> If you use the Fortran versions, you will also need G2C.
>
> Or you could just call the Fortran libraries directly from
> C/C++...just remember in Fortran, everything is passed by pointer. I
> have a class library that interfaces to LAPACK that I can show you as
> an example.

It probably depends on the compiler actually, but none of the compilers I
use (GCC and Intel) will link to LAPACK without G2C. I think the reason is
that some of the intrinsic Fortran functions (like lg10) do not exist in C,
and so they have to be provided in libraries.

Cheers,
Oleg

-- 
Oleg Trott        <oleg_trott@columbia.edu>


Relevant Pages

  • Re: DFPORT
    ... I work on a Windows XP platform. ... We normally use F77 Fortran and for this one problematic program we ... Since we also have the Intel Fortran compiler, we also had a lot of ... Windows Fortran comper (with appropriate libraries). ...
    (comp.lang.fortran)
  • Re: LAPACK
    ... >>what do I have to do for installing LAPACK on a pc with windows XP??? ... You need a Fortran compiler, unless you want to use CLAPACK. ... The speed of LAPACK is very dependent on the quality of your BLAS. ...
    (sci.math.num-analysis)
  • Re: Who uses clapack?
    ... instead of linking to the binaries of the Fortran ... CLAPACK because they don't realize there are other alternatives. ... CLAPACK libraries, whereas if you download the pre-built libraries from ... Something to wrap around the BLAS and LAPACK, ...
    (sci.math.num-analysis)
  • Re: can somebody verify this C program which calls dsaupd_ ? (longish)
    ... > I compiled two Fortran libs separately. ... One ARPACK and the other BLAS. ... > makefiles of each of these libraries that I used and confirm I am on the ... > with the new gcc compiler. ...
    (sci.math.num-analysis)
  • Re: Looking for gen symm sparse eigensolver in C or C++
    ... That always brings the chance of compiler and library ... Intermix conflicts are best avoided if ... Using Fortran calls in C/C++ code is trivial (I have heard good things about ... As long as you have the latest libc libraries with gcc/g77, ...
    (comp.lang.fortran)

Loading