6

I'm looking to use the finite element method with B-splines as my function basis. Which C/C++ libraries have good B-spline support?

Specifically, I'm looking for an implementation of a stable algorithm, even if it's slow. I plan to precompute a lot of the inner products I need and store them in a file somewhere if the b-spline calculation gets slow enough to be bothersome.

Dan
  • 3,355
  • 3
  • 21
  • 47

2 Answers2

5

The Gnu Scientific Library (GSL) has an implementation of B-splines, and the documentation can be found here. According to the documentation, GSL uses De Boor's algorithm, which is numerically stable.

Dan
  • 3,355
  • 3
  • 21
  • 47
1

Also take a look at John Burkhardt's libraries at http://people.sc.fsu.edu/~jburkardt/ His code is LGPL licensed, as opposed to the GPL used by the Gnu Scientific Library.

hengestone
  • 11
  • 1