numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
variable_math.h File Reference

Definition of mathematical functions for variable class. More...

#include <cmath>
#include "num_collect/auto_diff/forward/variable.h"
+ Include dependency graph for variable_math.h:

Go to the source code of this file.

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
 
namespace  num_collect::auto_diff
 Namespace of automatic differentiation.
 
namespace  num_collect::auto_diff::forward
 Namespace of forward-mode automatic differentiation.
 
namespace  num_collect::auto_diff::forward::impl
 Namespace of internal implementations.
 

Functions

template<typename Value , typename Diff >
auto num_collect::auto_diff::forward::exp (const variable< Value, Diff > &x) -> variable< Value, Diff >
 Calculate exponential.
 
template<typename Value , typename Diff >
auto num_collect::auto_diff::forward::log (const variable< Value, Diff > &x) -> variable< Value, Diff >
 Calculate logarithm.
 
template<typename Value , typename Diff >
auto num_collect::auto_diff::forward::impl::process_one_arg_function (const variable< Value, Diff > &arg, const Value &val, const Value &sensitivity) -> variable< Value, Diff >
 Process a function with one argument.
 
template<typename Value , typename Diff >
auto num_collect::auto_diff::forward::sqrt (const variable< Value, Diff > &x) -> variable< Value, Diff >
 Calculate square root.
 

Detailed Description

Definition of mathematical functions for variable class.

Definition in file variable_math.h.