9 #include <eigen3/Eigen/Dense> 17 #include "../Generic/debug.h" 18 #include "../Generic/generics.h" 21 void PerfIsta( uint num_rows, uint num_cols ) {
23 Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic > X = build_matrix<float>( num_rows, num_cols, &eucl_distance );
24 Eigen::Matrix< float, Eigen::Dynamic, 1 > Y = X.col(0);
25 Eigen::Matrix< float, Eigen::Dynamic, 1 > W_0 = Eigen::Matrix< float, Eigen::Dynamic, 1 > ( num_rows, 1 );
30 TIME_IT( ISTA< float >( X, Y, W_0, 1, 0.1f, 0.5*lambda ); );
34 void RunIstaPerfTests() {
36 for ( uint k = 200; k <= 2000; k += 200 ) {
38 std::cout <<
"Testing ISTA for a " \
#define TIME_IT(func,...)
Get the de-mangled name of a type ( as it would appear in the source code ).