Tomographer  v1.0a
Tomographer C++ Framework Documentation
check_derivatives.h File Reference

(v1.0a)

Tools to check numerical derivatives. More...

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

Go to the source code of this file.

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::Tools
 Various useful tools.
 

Functions

template<typename Der1 , typename Der2 , typename fnType , typename ErrorStream >
bool Tomographer::Tools::check_derivatives (const Eigen::ArrayBase< Der1 > &derivatives, const Eigen::MatrixBase< Der2 > &point, fnType fn, std::size_t valdims, typename Eigen::MatrixBase< Der2 >::Scalar delta=1e-6, 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::Tools::check_derivatives().

Definition in file check_derivatives.h.