version 0.4.1
functionsanitychecks.hh File Reference

Implementation of function sanity checks. More...

#include "findlinesegment.hh"
#include <iostream>
#include <dune/common/float_cmp.hh>
#include <spdlog/spdlog.h>

Go to the source code of this file.

Classes

struct  Ikarus::utils::CheckFlags
 Struct to hold flags for function checks. More...
 

Namespaces

namespace  Ikarus
 
namespace  Ikarus::utils
 

Functions

template<typename NonlinearOperator , typename UpdateType = typename NonlinearOperator::template ParameterValue<0>>
bool Ikarus::utils::checkGradient (NonlinearOperator &nonLinOp, CheckFlags checkFlags=CheckFlags(), std::function< void(typename NonlinearOperator::template ParameterValue< 0 > &, const UpdateType &)> p_updateFunction=[](typename NonlinearOperator::template ParameterValue< 0 > &a, const UpdateType &b) { a+=b;})
 Checks the gradient of a nonlinear operator. More...
 
template<typename NonlinearOperator , typename UpdateType = typename NonlinearOperator::template ParameterValue<0>>
bool Ikarus::utils::checkJacobian (NonlinearOperator &nonLinOp, CheckFlags checkFlags=CheckFlags(), std::function< void(typename NonlinearOperator::template ParameterValue< 0 > &, const UpdateType &)> p_updateFunction=[](typename NonlinearOperator::template ParameterValue< 0 > &a, const UpdateType &b) { a+=b;})
 Checks the Jacobian of a nonlinear operator. More...
 
template<typename NonlinearOperator , typename UpdateType = typename NonlinearOperator::template ParameterValue<0>>
bool Ikarus::utils::checkHessian (NonlinearOperator &nonLinOp, CheckFlags checkFlags=CheckFlags(), std::function< void(typename NonlinearOperator::template ParameterValue< 0 > &, const UpdateType &)> p_updateFunction=[](typename NonlinearOperator::template ParameterValue< 0 > &a, const UpdateType &b) { a+=b;})
 Checks the Hessian of a nonlinear operator. More...