#include <alpaqa/config/config.hpp>
#include <alpaqa/problem/sparsity-conversions.hpp>
#include <alpaqa/util/demangled-typename.hpp>
#include <alpaqa/util/print.hpp>
#include <alpaqa-version.h>
#include "options.hpp"
#include "problem.hpp"
#include "util.hpp"
#include <Eigen/Sparse>
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <random>
#include <span>
#include <stdexcept>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
Go to the source code of this file.
◆ CheckGradientsOpts
struct CheckGradientsOpts |
Class Members |
bool |
print_full |
|
bool |
hessians |
|
◆ print_usage()
void print_usage |
( |
const char * |
a0 | ) |
|
◆ split_once()
auto split_once |
( |
std::string_view |
s, |
|
|
char |
tok = '.' |
|
) |
| |
Split the string s
on the first occurrence of tok
.
Returns ("", s) if tok was not found.
Definition at line 84 of file gradient-checker.cpp.
◆ get_problem_path()
auto get_problem_path |
( |
const char *const * |
argv | ) |
|
◆ check_gradients()
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
◆ finite_diff()
vec finite_diff |
( |
const std::function< real_t(crvec)> & |
f, |
|
|
crvec |
x |
|
) |
| |
◆ finite_diff_hess_sparse()
auto finite_diff_hess_sparse |
( |
const std::function< void(crvec, rvec)> & |
grad_L, |
|
|
crvec |
x |
|
) |
| |
◆ finite_diff_hess()
auto finite_diff_hess |
( |
const std::function< void(crvec, rvec)> & |
grad_L, |
|
|
crvec |
x |
|
) |
| |