10 #include <eigen3/Eigen/Dense> 11 #include <Eigen/IterativeLinearSolvers> 19 #include "../Generic/debug.hpp" 20 #include "../Generic/generics.hpp" 23 void TestIsta(
unsigned int num_rows,
unsigned int num_cols ) {
25 auto X = build_matrix<float>( num_rows, num_cols, &eucl_distance );
27 auto W_0 = Eigen::Matrix< float, Eigen::Dynamic, 1 > ( num_rows, 1 );
32 Eigen::Matrix< float, Eigen::Dynamic, 1 > ista_retval = ISTA< float >( X, Y, W_0, 10, 0.1, lambda );
34 std::cout <<
"ISTA result:\n" << ista_retval.squaredNorm() << std::endl;
39 for (
unsigned int k = 200; k <= 2000; k+= 200 ) {
41 std::cout <<
"Testing ISTA for a " \