numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Namespace of forward-mode automatic differentiation. More...
Namespaces | |
namespace | impl |
Namespace of internal implementations. | |
Classes | |
class | variable |
Class of variables in forward-mode automatic differentiation [17]. 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 Value> | |
auto | create_diff_variable (const Value &value) -> variable< Value > |
Create a variable by which functions will be differentiated (for scalar differential coefficients). | |
template<base::concepts::real_scalar Value, base::concepts::real_scalar_dense_vector Diff> | |
auto | create_diff_variable (const Value &value, index_type size, index_type index) -> variable< Value, Diff > |
Create a variable by which functions will be differentiated (for vector differential coefficients). | |
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 Value , typename Diff > | |
auto | exp (const variable< Value, Diff > &x) -> variable< Value, Diff > |
Calculate exponential. | |
template<typename Value , typename Diff > | |
auto | log (const variable< Value, Diff > &x) -> variable< Value, Diff > |
Calculate logarithm. | |
template<base::concepts::dense_vector VectorType> | |
auto | make_jacobian (const Eigen::MatrixBase< VectorType > &vector) -> Eigen::CwiseNullaryOp< impl::make_jacobian_functor< VectorType >, typename impl::make_jacobian_functor< VectorType >::result_type > |
Make Jacobian from a vector of variables. | |
template<typename Value , typename Diff > | |
auto | operator* (const Value &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Multiply two variables. | |
template<typename Value , typename Diff > | |
auto | operator* (const variable< Value, Diff > &left, const Value &right) -> variable< Value, Diff > |
Multiply two variables. | |
template<typename Value , typename Diff > | |
auto | operator* (const variable< Value, Diff > &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Multiply two variables. | |
template<typename Value , typename Diff > | |
auto | operator+ (const Value &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Add two variables. | |
template<typename Value , typename Diff > | |
auto | operator+ (const variable< Value, Diff > &left, const Value &right) -> variable< Value, Diff > |
Add two variables. | |
template<typename Value , typename Diff > | |
auto | operator+ (const variable< Value, Diff > &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Add two variables. | |
template<typename Value , typename Diff > | |
auto | operator- (const Value &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Subtract a variable from another variable. | |
template<typename Value , typename Diff > | |
auto | operator- (const variable< Value, Diff > &left, const Value &right) -> variable< Value, Diff > |
Subtract a variable from another variable. | |
template<typename Value , typename Diff > | |
auto | operator- (const variable< Value, Diff > &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Subtract a variable from another variable. | |
template<typename Value , typename Diff > | |
auto | operator/ (const Value &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Divide a variable by another variable. | |
template<typename Value , typename Diff > | |
auto | operator/ (const variable< Value, Diff > &left, const Value &right) -> variable< Value, Diff > |
Divide a variable by another variable. | |
template<typename Value , typename Diff > | |
auto | operator/ (const variable< Value, Diff > &left, const variable< Value, Diff > &right) -> variable< Value, Diff > |
Divide a variable by another variable. | |
template<typename Value , typename Diff > | |
auto | sqrt (const variable< Value, Diff > &x) -> variable< Value, Diff > |
Calculate square root. | |
Namespace of forward-mode automatic differentiation.
using num_collect::auto_diff::forward::variable_vector_type |
Get type of vectors of variables.
ValueVector | Type of vectors of values. |
Definition at line 76 of file create_diff_variable.h.
|
inlinenodiscard |
Create a variable by which functions will be differentiated (for scalar differential coefficients).
This will set the differential coefficient to one.
Value | Type of the value. |
Diff | Type of the differential coefficient. |
[in] | value | Value. |
Definition at line 47 of file create_diff_variable.h.
|
inlinenodiscard |
Create a variable by which functions will be differentiated (for vector differential coefficients).
Value | Type of the value. |
Diff | Type of the differential coefficients. |
[in] | value | Value. |
[in] | size | Size of Diff. |
[in] | index | Index of the variable. |
Definition at line 65 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 144 of file create_diff_variable.h.
|
inlinenodiscard |
Calculate exponential.
Value | Type of values. |
Diff | Type of differential coefficients. |
[in] | x | Argument. |
Definition at line 61 of file variable_math.h.
|
inlinenodiscard |
Calculate logarithm.
Value | Type of values. |
Diff | Type of differential coefficients. |
[in] | x | Argument. |
Definition at line 77 of file variable_math.h.
|
inlinenodiscard |
Make Jacobian from a vector of variables.
VectorType | Type of vectors of variables. |
[in] | vector | Vector of variables. |
Definition at line 100 of file make_jacobian.h.
|
inlinenodiscard |
Multiply two variables.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 320 of file variable.h.
|
inlinenodiscard |
Multiply two variables.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 335 of file variable.h.
|
inlinenodiscard |
Multiply two variables.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 305 of file variable.h.
|
inlinenodiscard |
Add two variables.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 230 of file variable.h.
|
inlinenodiscard |
Add two variables.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 245 of file variable.h.
|
inlinenodiscard |
Add two variables.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 215 of file variable.h.
|
inlinenodiscard |
Subtract a variable from another variable.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 275 of file variable.h.
|
inlinenodiscard |
Subtract a variable from another variable.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 290 of file variable.h.
|
inlinenodiscard |
Subtract a variable from another variable.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 260 of file variable.h.
|
inlinenodiscard |
Divide a variable by another variable.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 365 of file variable.h.
|
inlinenodiscard |
Divide a variable by another variable.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 380 of file variable.h.
|
inlinenodiscard |
Divide a variable by another variable.
Value | Type of value. |
Diff | Type of differential coefficients. |
[in] | left | Left-hand-side variable. |
[in] | right | Right-hand-side variable. |
Definition at line 350 of file variable.h.
|
inlinenodiscard |
Calculate square root.
Value | Type of values. |
Diff | Type of differential coefficients. |
[in] | x | Argument. |
Definition at line 93 of file variable_math.h.