rafaelrojasmiliani / gsplines_cpp

Generalized Splines for Motion Optimization in C++ and python3
MIT License
24 stars 0 forks source link

Implement Gsplines as Functions #8

Closed rafaelrojasmiliani closed 3 years ago

rafaelrojasmiliani commented 3 years ago

Take the current implementation of PiecewiseFunction and rename it as Gspline which inherits from Function.

This overrides some method as as

PiecewiseFunction operator*(double); // multiply coefficients
PiecewiseFunction operator*=(double);
PiecewiseFunction operator+(const PiecewiseFunction&); // assert same domain, same partition, same basis, add vectors
PiecewiseFunction operator+=(const PiecewiseFunction&);