Blitz logo

Blitz Support :

From: Thomas Harte (tom_harte_at_[hidden])
Date: 2004-05-19 15:27:47


Hallo all,
 
I'm a MATLAB user who is intent on switching to C++: I have C++
experience; I have virtually no Blitz++ experience; and I have zero LAPACK
experience.
 
(My question doesn't preclude the use of Numerical Recipes...so swap
"solver library" for "LAPACK" in what follows.)
 

The Blitz++ syntax is the best that I have seen of the array/matrix
libraries, but as a MATLAB user I have become reliant on instant and
painless access to great linear algebra solvers.
 
The FAQ lists my question:
 
   ** For my problem, I need SVD, FFTs, QMRES, PLU, QR, ....*
    Blitz++ does not currently provide any of these. However, there are
 numerous C++ and C packages out there which do, and it is easy to move
 data back and forth between Blitz++ and other libraries. See these
 terms in the index: creating an array from pre-existing data, `data()',
 `stride()', `extent()', `fortranArray'. For a list of other numerical
 C++ libraries, see the Object Oriented Numerics Page at
 `http://oonumerics.org/oon/'.
 
The FAQ answer, plus a trawl through the blitz-support archives, leads
me to believe that interfacing Blitz++ to LAPACK is probably straight
foward, however, I am a novice when it comes to both Blitz++ and LAPACK.
 
[My Question:] Has anyone built a Blitz++-LAPACK interface? i.e. a C++
wrapper around LAPACK that can be called from Blitz++?
 
Failing that, could anyone please post/email a small example of a
Blitz++ access to LAPACK, i.e. .cpp example file(s) with a Makefile?
 
With thanks in advance,
 
Thomas Harte.