![]() |
SOPT
Sparse OPTimisation
|
#include <catch2/catch_all.hpp>
#include <random>
#include <Eigen/Dense>
#include "sopt/bisection_method.h"
#include "sopt/types.h"
Go to the source code of this file.
Typedefs | |
using | Scalar = sopt::t_real |
using | t_Vector = sopt::Vector< Scalar > |
using | t_Matrix = sopt::Matrix< Scalar > |
Functions | |
TEST_CASE ("Bisection x^3") | |
TEST_CASE ("Bisection f(x) = x") | |
TEST_CASE ("Bisection exp()") | |
Variables | |
constexpr Scalar | a = -0.5 |
constexpr Scalar | b = 1. |
constexpr Scalar | tol = 1e-4 |
using Scalar = sopt::t_real |
Definition at line 9 of file bisection_method.cc.
using t_Matrix = sopt::Matrix<Scalar> |
Definition at line 11 of file bisection_method.cc.
using t_Vector = sopt::Vector<Scalar> |
Definition at line 10 of file bisection_method.cc.
TEST_CASE | ( | "Bisection exp()" | ) |
Definition at line 31 of file bisection_method.cc.
References a, b, sopt::bisection_method(), and tol.
TEST_CASE | ( | ) |
Definition at line 24 of file bisection_method.cc.
References a, b, sopt::bisection_method(), and tol.
TEST_CASE | ( | "Bisection x^3" | ) |
Definition at line 16 of file bisection_method.cc.
References a, b, sopt::bisection_method(), sopt::logging::set_level(), and tol.
|
constexpr |
Definition at line 13 of file bisection_method.cc.
Referenced by sopt::bisection_method(), sopt::details::gcd(), sopt::linear_transform(), sopt::wavelets::SARA::max_levels(), sopt::algorithm::SDMM< SCALAR >::operator()(), and TEST_CASE().
|
constexpr |
Definition at line 14 of file bisection_method.cc.
Referenced by sopt::bisection_method(), sopt::credible_region::find_credible_interval(), function_cg(), sopt::details::gcd(), sopt::linear_transform(), main(), matrix_cg(), sopt::wavelets::SARA::max_levels(), sopt::ConjugateGradient::operator()(), and TEST_CASE().
|
constexpr |
Definition at line 15 of file bisection_method.cc.
Referenced by TEST_CASE(), and sopt::proximal::L1< SCALAR >::Breaker::tolerance().