numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Namespace of backward-mode automatic differentiation. More...
Namespaces | |
namespace | graph |
Namespace of graphs in backward-mode automatic differentiation. | |
namespace | impl |
Namespace of internal implementations. | |
Classes | |
struct | constant_tag |
Tag class to specify constants. More... | |
class | variable |
Class of variables in backward-mode automatic differentiation [17]. More... | |
struct | variable_tag |
Tag class to specify variables. More... | |
Typedefs | |
template<base::concepts::real_scalar_dense_vector ValueVector> | |
using | variable_vector_type |
Get type of vectors of variables. | |
Functions | |
template<base::concepts::real_scalar Scalar> | |
auto | create_diff_variable (const Scalar &value) -> variable< Scalar > |
Create a variable by which functions will be differentiated. | |
template<base::concepts::real_scalar_dense_vector ValueVector> | |
auto | create_diff_variable_vector (const Eigen::MatrixBase< ValueVector > &value_vec) -> Eigen::CwiseNullaryOp< impl::create_diff_variable_vector_functor< ValueVector >, typename impl::create_diff_variable_vector_functor< ValueVector >::result_type > |
Create a vector of variables. | |
template<typename FuncValType , typename ArgType > | |
auto | differentiate (const Eigen::MatrixBase< FuncValType > &func_value, const Eigen::MatrixBase< ArgType > &arg) -> Eigen::CwiseNullaryOp< impl::differentiate_vector_with_vector_functor< FuncValType, ArgType >, typename impl::differentiate_vector_with_vector_functor< FuncValType, ArgType >::result_type > |
Compute differential coefficients. | |
template<typename Scalar , typename ArgDerived > | |
auto | differentiate (const variable< Scalar > &func_value, const Eigen::MatrixBase< ArgDerived > &arg) -> Eigen::CwiseNullaryOp< impl::differentiate_scalar_with_matrix_functor< ArgDerived >, typename impl::differentiate_scalar_with_matrix_functor< ArgDerived >::result_type > |
Compute differential coefficients. | |
template<typename Scalar > | |
auto | differentiate (const variable< Scalar > &func_value, const variable< Scalar > &arg) -> Scalar |
Compute a differential coefficient. | |
template<typename Scalar > | |
auto | exp (const variable< Scalar > &x) -> variable< Scalar > |
Calculate exponential. | |
template<typename Scalar > | |
auto | log (const variable< Scalar > &x) -> variable< Scalar > |
Calculate logarithm. | |
template<typename Scalar > | |
auto | operator* (const Scalar &left, const variable< Scalar > &right) -> variable< Scalar > |
Multiply two variables. | |
template<typename Scalar > | |
auto | operator* (const variable< Scalar > &left, const Scalar &right) -> variable< Scalar > |
Multiply two variables. | |
template<typename Scalar > | |
auto | operator* (const variable< Scalar > &left, const variable< Scalar > &right) -> variable< Scalar > |
Multiply two variables. | |
template<typename Scalar > | |
auto | operator+ (const Scalar &left, const variable< Scalar > &right) -> variable< Scalar > |
Add two variables. | |
template<typename Scalar > | |
auto | operator+ (const variable< Scalar > &left, const Scalar &right) -> variable< Scalar > |
Add two variables. | |
template<typename Scalar > | |
auto | operator+ (const variable< Scalar > &left, const variable< Scalar > &right) -> variable< Scalar > |
Add two variables. | |
template<typename Scalar > | |
auto | operator- (const Scalar &left, const variable< Scalar > &right) -> variable< Scalar > |
Subtract a variable from another variable. | |
template<typename Scalar > | |
auto | operator- (const variable< Scalar > &left, const Scalar &right) -> variable< Scalar > |
Subtract a variable from another variable. | |
template<typename Scalar > | |
auto | operator- (const variable< Scalar > &left, const variable< Scalar > &right) -> variable< Scalar > |
Subtract a variable from another variable. | |
template<typename Scalar > | |
auto | operator/ (const Scalar &left, const variable< Scalar > &right) -> variable< Scalar > |
Divide a variable from another variable. | |
template<typename Scalar > | |
auto | operator/ (const variable< Scalar > &left, const Scalar &right) -> variable< Scalar > |
Divide a variable from another variable. | |
template<typename Scalar > | |
auto | operator/ (const variable< Scalar > &left, const variable< Scalar > &right) -> variable< Scalar > |
Divide a variable from another variable. | |
template<typename Scalar > | |
auto | sqrt (const variable< Scalar > &x) -> variable< Scalar > |
Calculate square root. | |
Namespace of backward-mode automatic differentiation.
using num_collect::auto_diff::backward::variable_vector_type |
Get type of vectors of variables.
ValueVector | Type of vectors of values. |
Definition at line 54 of file create_diff_variable.h.
|
inlinenodiscard |
Create a variable by which functions will be differentiated.
Scalar | Type of scalars. |
[in] | value | Value. |
Definition at line 43 of file create_diff_variable.h.
|
inlinenodiscard |
Create a vector of variables.
ValueVector | Type of vectors of values. |
[in] | value_vec | Vector of values. |
Definition at line 118 of file create_diff_variable.h.
|
inlinenodiscard |
Compute differential coefficients.
FuncValType | Type of function values. |
ArgType | Type of function arguments. |
[in] | func_value | Variable of the function value. |
[in] | arg | Variable of the argument. |
Definition at line 208 of file differentiate.h.
|
inlinenodiscard |
Compute differential coefficients.
Scalar | Type of scalars. |
ArgDerived | Derived class of argument. |
[in] | func_value | Variable of the function value. |
[in] | arg | Variable of the argument. |
Definition at line 119 of file differentiate.h.
|
inlinenodiscard |
Compute a differential coefficient.
Scalar | Type of scalars. |
[in] | func_value | Variable of the function value. |
[in] | arg | Variable of the argument. |
Definition at line 48 of file differentiate.h.
|
inlinenodiscard |
Calculate exponential.
Scalar | Type of scalars. |
[in] | x | Argument. |
Definition at line 60 of file variable_math.h.
|
inlinenodiscard |
Calculate logarithm.
Scalar | Type of scalars. |
[in] | x | Argument. |
Definition at line 74 of file variable_math.h.
|
inlinenodiscard |
Multiply two variables.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 353 of file variable.h.
|
inlinenodiscard |
Multiply two variables.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 367 of file variable.h.
|
inlinenodiscard |
Multiply two variables.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 339 of file variable.h.
|
inlinenodiscard |
Add two variables.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 269 of file variable.h.
|
inlinenodiscard |
Add two variables.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 283 of file variable.h.
|
inlinenodiscard |
Add two variables.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 255 of file variable.h.
|
inlinenodiscard |
Subtract a variable from another variable.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 311 of file variable.h.
|
inlinenodiscard |
Subtract a variable from another variable.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 325 of file variable.h.
|
inlinenodiscard |
Subtract a variable from another variable.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 297 of file variable.h.
|
inlinenodiscard |
Divide a variable from another variable.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 395 of file variable.h.
|
inlinenodiscard |
Divide a variable from another variable.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 409 of file variable.h.
|
inlinenodiscard |
Divide a variable from another variable.
Scalar | Type of scalars. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 381 of file variable.h.
|
inlinenodiscard |
Calculate square root.
Scalar | Type of scalars. |
[in] | x | Argument. |
Definition at line 88 of file variable_math.h.