toltec-astro / macana2

AzTEC data reduction pipeline
0 stars 2 forks source link

add curvefit functions and the unit tests #12

Closed Jerry-Ma closed 5 years ago

Jerry-Ma commented 5 years ago

This is an initial implementation of the curve fit module using Eigen.

This also should serve as an example for future port_xxx effort.

This is also a useful example of working with Eigen, which could sometimes be hard to get it right, as it encapsulate a lot of the stuff behind the scene.

The template-heavy nature of Eigen also means we need to write class templates, which could be less easy sometimes.

Please feel free to read the code and comment.