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::impl Namespace Reference

Namespace of internal implementations. More...

Functions

template<base::concepts::real_scalar Scalar>
auto create_node_impl (std::vector< child_node< Scalar > > &children) -> node_ptr< Scalar >
 Create a node.
 
template<base::concepts::real_scalar Scalar, typename... Args>
auto create_node_impl (std::vector< child_node< Scalar > > &children, node_ptr< Scalar > node, const Scalar &sensitivity, Args &&... args) -> node_ptr< Scalar >
 Create a node.
 

Detailed Description

Namespace of internal implementations.

Function Documentation

◆ create_node_impl() [1/2]

template<base::concepts::real_scalar Scalar>
auto num_collect::auto_diff::backward::graph::impl::create_node_impl ( std::vector< child_node< Scalar > > & children) -> node_ptr<Scalar>
inlinenodiscard

Create a node.

Template Parameters
ScalarType of scalars.
Parameters
[in]childrenChild nodes.
Returns
Created node.

Definition at line 138 of file node.h.

◆ create_node_impl() [2/2]

template<base::concepts::real_scalar Scalar, typename... Args>
auto num_collect::auto_diff::backward::graph::impl::create_node_impl ( std::vector< child_node< Scalar > > & children,
node_ptr< Scalar > node,
const Scalar & sensitivity,
Args &&... args ) -> node_ptr<Scalar>
inlinenodiscard

Create a node.

Template Parameters
ScalarType of scalars.
ArgsTypes of remaining arguments.
Parameters
[in]childrenChild nodes.
[in]nodeChild node.
[in]sensitivityPartial differential coefficient of the parent node by the child node.
[in]argsRemaining arguments.
Returns
Created node.

Definition at line 156 of file node.h.