Tomographer  v5.4
Tomographer C++ Framework Documentation
check_derivatives.h File Reference

(v5.4)

Tools to check numerical derivatives. More...

#include <cstddef>
#include <iostream>
#include <Eigen/Core>
#include <tomographer/tools/cxxutil.h>
+ Include dependency graph for check_derivatives.h:

Go to the source code of this file.

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::MathTools
 General math routines.
 

Functions

template<typename Der1 , typename Der2 , typename fnType , typename ErrorStream >
bool Tomographer::MathTools::check_derivatives (const Eigen::ArrayBase< Der1 > &derivatives, const Eigen::MatrixBase< Der2 > &point, fnType fn, Eigen::Index valdims, const typename Eigen::MatrixBase< Der2 >::Scalar delta=1e-6, const typename Eigen::MatrixBase< Der1 >::Scalar tol=1e-6, ErrorStream &error_stream=std::cerr)
 Check given derivatives against numerically-calculated finite differences. More...
 

Detailed Description

Tools to check numerical derivatives.

See Tomographer::MathTools::check_derivatives().

Definition in file check_derivatives.h.