#include #include #include #include #include #include // Contains definitions for B_Splines based on GSL. using namespace std; int main(){ double xmin=0.0, xmax=15.0; //vector breakpts {0.0,1.0,2.,3.,4.,5.,6.,7., xmax,8.,9.,10.,11.}; // With this compiles/runs vector breakpts {0.0, 5. , 1.0,2.,3.,4.,5.,6.,7.,xmax,8.,9., 3,10.,11.}; // With this crashes due to non increasing order size_t k=5; gsl_vector * gsl_breakpts = gsl_vector_alloc(breakpts.size()); for(size_t i=0; iget_ncoeffs(); i++) cout<get_Bix(i,x)<<" "; cout<