From 3cc20874098867aab11313b7fb1d1f65c400fa0c Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Mon, 22 Jan 2018 16:15:20 +0000 Subject: fixed setup.py, bugfixes --- Wrappers/Python/fista_module.cpp | 18 ++++++++++++++---- Wrappers/Python/setup.py | 9 +++++---- 2 files changed, 19 insertions(+), 8 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/fista_module.cpp b/Wrappers/Python/fista_module.cpp index f3add76..bb43b84 100644 --- a/Wrappers/Python/fista_module.cpp +++ b/Wrappers/Python/fista_module.cpp @@ -592,6 +592,8 @@ bp::list FGP_TV(np::ndarray input, double d_mu, int iter, double d_epsil, int me bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, double d_epsil, int switcher) { // 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; @@ -644,7 +646,8 @@ bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, d np::ndarray npD1 = np::zeros(shape, dtype); np::ndarray npD2 = np::zeros(shape, dtype); - + //result.append(npU); + U = reinterpret_cast(npU.get_data()); U_old = reinterpret_cast(npU_old.get_data()); D1 = reinterpret_cast(npD1.get_data()); @@ -657,7 +660,7 @@ 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 <(npU); + std::cout << "npU shape " << bp::extract(bp::str(shape)) <(bp::str(npU)) <(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(bp::str(shape)) <(bp::str(result[0])) <