Re: [ROOT] CINT and the GSL

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun Nov 17 2002 - 18:20:31 MET


Hi Jacek,

The GSL C++ wrapper is only for a small subset of GSL
and it does not seen to progress very fast.
Speed is an issue most of the time, so I believe that
many users will request a direct interface to the C GSL library.

As I said in a previous mail, the CINT/GSL interface is on
our todo list. It looks like you are the only one who
attempted to do the work so far.
The CINT parser has made substantial progress in the past few 
months. It could be that there are still some difficulties
with some GSL includes. If this is the case, we will fix CINT.

Rene Brun

On Sun, 17 Nov 2002, Jacek M. Holeczek wrote:

> Hi,
> My 5 cents.
> Some time ago (around mid 2001) I have also been looking at this problem.
> If I'm not wrong then the main page for the GSL is :
> 	http://sources.redhat.com/gsl/
> Today this page mentions a C++ wrapper (seems to be in "alpha" stage) for
> some vector and matrix functionality.
> There exists also a page with C++ wrappers to "special functions" :
> 	http://www.fnal.gov/docs/working-groups/fpcltf/Pkg/SpecialFunctions/doc/html/0SpecialFunctions.html
> In that time, when I was working on this problem, I was solely interested
> in a vector/matrix library in CINT/ROOT.
> I developed an "approach" to this problem which was based on a very old
> idea that the "g++" library was using - a "genclass" shell script which
> generates the C++ link to GSL (generate classes from prototypes - like
> "templates" which the CINT didn't like very much, at least in that
> time). Such prototypes are then "parsed" by CINT/ROOTCINT.
> I started with "implementing" a C++ based complex classes (float, double,
> long double) and then I implemented the GSL "block" functionality
> ("gsl_block*" related).
> Then I was ready to implement the "vector" and finally later the "matrix"
> functionality, but ... unfortunately ... I realized that the amount of
> new/delete operations in my computations would be much too high ... so I
> needed to find another solution ... thus I stopped working on GSL.
> (Fortunately, I had also realized that my needs were shut to 2,3 and 4
> dimensional vectors and matrices, so I had found a C++ Tiny Vector and
> Matrix Algebra package which I "genclass-ed" - this is possibly not the
> most sophisticated way of working, but at least everything is
> "inlined" by the compiler - and the code proved to be useful to me.)
> Best regards,
> Jacek.
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:18 MET