#include "tests/helpers.h" #include "sources/convexSolver.h" #include "sources/neighbors.h" //test on random matrix void test_convexSolver1() { int nrow=100, ncol=11; //usual parameters double alpha = 0.2; int k = 4, gmode = 3; // initialize M to random matrix which somewhat simulate true data repartition srand(time(NULL)); double* M = (double*)malloc(nrow*ncol*sizeof(double)); // fill series first for (int j=0; j