help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Re: gsl c++ wrapper ?


From: Rhys Ulerich
Subject: Re: [Help-gsl] Re: gsl c++ wrapper ?
Date: Mon, 31 Aug 2009 16:11:11 -0500

> Designing a good C++ wrapper to any matrix
> library is difficult provided one tries to keep C++ semantics.

It may be easier, if you have a favorite C++ matrix/vector library, to
design a GSL-wrapper for the matrix/vector library itself.

For example, write wrappers that accept ublas [1] or eigen2 [2]
matrices and vectors, wrap the same storage with gsl_matrix and
gsl_vector views, and then call the GSL methods directly.  Such
GSL-ublas or GSL-eigen2 bindings would be independent of both
projects, mainly boilerplate, and easy to test for correctness.

- Rhys

[1] http://www.boost.org/doc/libs/1_40_0/libs/numeric/ublas/doc/index.htm
[2] http://eigen.tuxfamily.org/index.php




reply via email to

[Prev in Thread] Current Thread [Next in Thread]