This pull request allows the user to add callbacks, which are called on each iteration of the CPD algorithm. The callbacks are stored as a vector of std::function specializations, such that function pointers, pointers to methods, and lambda functions may all be passed as callbacks. A simple example is also added.
This pull request allows the user to add callbacks, which are called on each iteration of the CPD algorithm. The callbacks are stored as a vector of
std::function
specializations, such that function pointers, pointers to methods, and lambda functions may all be passed as callbacks. A simple example is also added.This PR is a first step in addressing this issue.