diff options
| author | Edoardo Pasca <edo.paskino@gmail.com> | 2018-01-23 22:22:30 +0000 | 
|---|---|---|
| committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-01-23 22:45:21 +0000 | 
| commit | 39cc838da62d2a073ffd280bc781b61116ece64e (patch) | |
| tree | 529777d37634b8be7c8eb996fbf6edac32334d9c | |
| parent | ea2e657b7d91977e2c15e4f4971791c8238cdb0f (diff) | |
| download | regularization-39cc838da62d2a073ffd280bc781b61116ece64e.tar.gz regularization-39cc838da62d2a073ffd280bc781b61116ece64e.tar.bz2 regularization-39cc838da62d2a073ffd280bc781b61116ece64e.tar.xz regularization-39cc838da62d2a073ffd280bc781b61116ece64e.zip | |
removed debugging prints
| -rw-r--r-- | Wrappers/Python/fista_module.cpp | 32 | 
1 files changed, 1 insertions, 31 deletions
| diff --git a/Wrappers/Python/fista_module.cpp b/Wrappers/Python/fista_module.cpp index 657500e..3876cad 100644 --- a/Wrappers/Python/fista_module.cpp +++ b/Wrappers/Python/fista_module.cpp @@ -593,8 +593,6 @@ bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, d  	// the result is in the following list  	bp::list result; -	std::cout << "Calling LLT_model" << std::endl; -  	int number_of_dims, dimX, dimY, dimZ, ll, j, count;  	//const int  *dim_array;  	float *U0, *U = NULL, *U_old = NULL, *D1 = NULL, *D2 = NULL, *D3 = NULL, lambda, tau, re, re1, epsil, re_old; @@ -660,7 +658,6 @@ bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, d  		re_old = 0.0f;  		for (ll = 0; ll < iter; ll++) { -			std::cout << "iteration " << ll << " of " << iter << " count " << count <<std::endl;  			copyIm(U, U_old, dimX, dimY, dimZ);  			/*estimate inner derrivatives */ @@ -686,23 +683,9 @@ bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, d  			re_old = re;  		} /*end of iterations*/ -		  printf("HO iterations stopped at iteration: %i\n", ll); +		//  printf("HO iterations stopped at iteration: %i\n", ll);  		result.append<np::ndarray>(npU); -		std::cout << "npU shape " << bp::extract<char const *>(bp::str(shape)) <<std::endl; -		//std::cout << "npU  " << bp::extract<char const *>(bp::str(npU)) <<std::endl; -		std::cout << "npU  should be " ; -		int i = 0 ;  -		while (i < npU.get_nd() ) { -		    std::cout << npU.shape(i++) << " " ; -		} -		std::cout << std::endl; -		i = 0 ;  -		np::ndarray inside = bp::extract<np::ndarray>(result[0]);   -	   while (i < inside.get_nd() ) { -	       std::cout << inside.shape(i++) << " " ; -	   } -	   std::cout << std::endl;  	}  	else if (number_of_dims == 3) {  		/*3D case*/ @@ -783,19 +766,6 @@ bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, d  		if (switcher != 0) result.append<np::ndarray>(npMap);  	} -	std::cout << "Call to LLT_model ended" << std::endl; -	std::cout << "result length " << bp::len(result) << std::endl; -	//std::cout << "npU shape " << bp::extract<char const *>(bp::str(shape)) <<std::endl; -	std::cout << "result[0]  " << bp::extract<char const *>(bp::str(result[0])) <<std::endl; -	//std::cout << "result[0]  " << result[0].shape(0) << " " << result[0].shape(1) <<  " " << result[0].shape(2) <<std::endl;		 -	std::cout << "result[0] is " ; -	int i = 0 ;  -		np::ndarray inside = bp::extract<np::ndarray>(result[0]);   -	   while (i < inside.get_nd() ) { -	       std::cout << inside.shape(i++) << " " ; -	   } -	    -	std::cout << std::endl;  	return result;  } | 
