#include <sstream>
#include <benchmark/benchmark.h>
#include "sopt/l1_proximal.h"
#include "sopt/real_type.h"
#include "sopt/types.h"
Go to the source code of this file.
◆ BENCHMARK_MAIN()
◆ BENCHMARK_TEMPLATE() [1/2]
◆ BENCHMARK_TEMPLATE() [2/2]
◆ function_l1p()
template<typename TYPE >
void function_l1p |
( |
benchmark::State & |
state | ) |
|
Definition at line 8 of file l1_proximal.cc.
10 auto const N = state.range_x();
17 .tolerance(std::pow(10, -state.range_y()))
20 .positivity_constraint(
true)
25 Real
const gamma = 1e-2 / Psi.array().abs().sum();
27 while (state.KeepRunning()) l1(output, gamma, input);
28 state.SetBytesProcessed(int64_t(state.iterations()) * int64_t(
N) *
sizeof(TYPE));
Computes inner-most element type.
L1 proximal, including linear transform.
Real nu() const
Bounds on the squared norm of the operator Ψ
Eigen::Matrix< T, Eigen::Dynamic, 1 > Vector
A vector of a given type.
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > Matrix
A matrix of a given type.
References N, and sopt::proximal::L1< SCALAR >::nu().