/* reconstructfrompatchesstartingfrom.cpp - given the patches with a certain delay('jump'), reconstruct the long signal Copyright (C) 2010 Rui Rodrigues This software is released under the terms of the GNU General Public License (http://www.gnu.org/copyleft/gpl.html). */ #include #include #include #include #include using namespace std; #include #include #ifdef _OPENMP #include #endif void reconstructfrompatches_startingfrom(gsl_vector*longsignal, gsl_matrix*patches, int start, int comp, int jump){ // #ifdef _OPENMP // const int maxnumthreads = omp_get_max_threads(); // #else /* _OPENMP */ // const int maxnumthreads = 1; // #endif /* _OPENMP */ int patchsize=(int) patches->size2; int numpatches=(int) patches->size1; if((numpatches-1)*jump+patchsizesize is smaller than comp!"<