numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_collect::auto_diff::backward::graph Namespace Reference

Namespace of graphs in backward-mode automatic differentiation. More...

Namespaces

namespace  impl
 Namespace of internal implementations.
 

Classes

class  child_node
 class to save information of child nodes. More...
 
class  node
 Class of nodes in graphs of automatic differentiation. More...
 
class  node_differentiator
 Class to compute differential coefficients for nodes in backward-mode automatic differentiation [17]. More...
 

Typedefs

template<base::concepts::real_scalar Scalar>
using node_ptr = std::shared_ptr<const node<Scalar>>
 Type of pointers of nodes.
 

Functions

template<base::concepts::real_scalar Scalar, typename... Args>
auto create_node (Args &&... args) -> node_ptr< Scalar >
 Create a node.
 

Detailed Description

Namespace of graphs in backward-mode automatic differentiation.

Typedef Documentation

◆ node_ptr

template<base::concepts::real_scalar Scalar>
using num_collect::auto_diff::backward::graph::node_ptr = std::shared_ptr<const node<Scalar>>

Type of pointers of nodes.

Template Parameters
ScalarType of scalars.

Definition at line 40 of file node.h.

Function Documentation

◆ create_node()

template<base::concepts::real_scalar Scalar, typename... Args>
auto num_collect::auto_diff::backward::graph::create_node ( Args &&... args) -> node_ptr<Scalar>
inlinenodiscard

Create a node.

Template Parameters
ScalarType of scalars.
ArgsTypes of arguments.
Parameters
[in]argsArguments.
Returns
Created node.

Definition at line 174 of file node.h.