CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
CppAD::cg::BaseAbstractAtomicFun< Base > Class Template Reference

#include <base_abstract_atomic_fun.hpp>

Inheritance diagram for CppAD::cg::BaseAbstractAtomicFun< Base >:
Inheritance graph
Collaboration diagram for CppAD::cg::BaseAbstractAtomicFun< Base >:
Collaboration graph

Public Types

using CGB = CppAD::cg::CG< Base >
 
using Arg = Argument< Base >
 

Public Member Functions

template<class ADVector >
void operator() (const ADVector &ax, ADVector &ay, size_t id=0)
 

Protected Member Functions

 BaseAbstractAtomicFun (const std::string &name)
 

Static Protected Member Functions

static void appendAsArguments (typename std::vector< Arg >::iterator begin, const CppAD::vector< CGB > &tx)
 
static OperationNode< Base > * makeArray (CodeHandler< Base > &handler, const CppAD::vector< CGB > &tx)
 
static OperationNode< Base > * makeArray (CodeHandler< Base > &handler, const CppAD::vector< CGB > &tx, size_t p, size_t k)
 
static OperationNode< Base > * makeZeroArray (CodeHandler< Base > &handler, size_t size)
 
static OperationNode< Base > * makeEmptySparseArray (CodeHandler< Base > &handler, size_t size)
 
static OperationNode< Base > * makeSparseArray (CodeHandler< Base > &handler, const CppAD::vector< CGB > &py, size_t p, size_t k)
 
static bool isParameters (const CppAD::vector< CGB > &tx)
 
static bool isValuesDefined (const CppAD::vector< CGB > &tx)
 

Detailed Description

template<class Base>
class CppAD::cg::BaseAbstractAtomicFun< Base >

Contains some utility methods for atomic functions for the type CG

Author
Joao Leal

Definition at line 28 of file base_abstract_atomic_fun.hpp.

Member Typedef Documentation

◆ Arg

template<class Base >
using CppAD::cg::BaseAbstractAtomicFun< Base >::Arg = Argument<Base>

Definition at line 31 of file base_abstract_atomic_fun.hpp.

◆ CGB

template<class Base >
using CppAD::cg::BaseAbstractAtomicFun< Base >::CGB = CppAD::cg::CG<Base>

Definition at line 30 of file base_abstract_atomic_fun.hpp.

Constructor & Destructor Documentation

◆ BaseAbstractAtomicFun()

template<class Base >
CppAD::cg::BaseAbstractAtomicFun< Base >::BaseAbstractAtomicFun ( const std::string &  name)
inlineexplicitprotected

Creates a new atomic function that is responsible for defining the dependencies to calls of a user atomic function.

Parameters
nameThe atomic function name.

Definition at line 40 of file base_abstract_atomic_fun.hpp.

Member Function Documentation

◆ appendAsArguments()

template<class Base >
static void CppAD::cg::BaseAbstractAtomicFun< Base >::appendAsArguments ( typename std::vector< Arg >::iterator  begin,
const CppAD::vector< CGB > &  tx 
)
inlinestaticprotected

Definition at line 58 of file base_abstract_atomic_fun.hpp.

◆ isParameters()

template<class Base >
static bool CppAD::cg::BaseAbstractAtomicFun< Base >::isParameters ( const CppAD::vector< CGB > &  tx)
inlinestaticprotected

Definition at line 131 of file base_abstract_atomic_fun.hpp.

◆ isValuesDefined()

template<class Base >
static bool CppAD::cg::BaseAbstractAtomicFun< Base >::isValuesDefined ( const CppAD::vector< CGB > &  tx)
inlinestaticprotected

Definition at line 140 of file base_abstract_atomic_fun.hpp.

◆ makeArray() [1/2]

template<class Base >
static OperationNode< Base > * CppAD::cg::BaseAbstractAtomicFun< Base >::makeArray ( CodeHandler< Base > &  handler,
const CppAD::vector< CGB > &  tx 
)
inlinestaticprotected

Definition at line 71 of file base_abstract_atomic_fun.hpp.

◆ makeArray() [2/2]

template<class Base >
static OperationNode< Base > * CppAD::cg::BaseAbstractAtomicFun< Base >::makeArray ( CodeHandler< Base > &  handler,
const CppAD::vector< CGB > &  tx,
size_t  p,
size_t  k 
)
inlinestaticprotected

Definition at line 79 of file base_abstract_atomic_fun.hpp.

◆ makeEmptySparseArray()

template<class Base >
static OperationNode< Base > * CppAD::cg::BaseAbstractAtomicFun< Base >::makeEmptySparseArray ( CodeHandler< Base > &  handler,
size_t  size 
)
inlinestaticprotected

Definition at line 101 of file base_abstract_atomic_fun.hpp.

◆ makeSparseArray()

template<class Base >
static OperationNode< Base > * CppAD::cg::BaseAbstractAtomicFun< Base >::makeSparseArray ( CodeHandler< Base > &  handler,
const CppAD::vector< CGB > &  py,
size_t  p,
size_t  k 
)
inlinestaticprotected

Definition at line 106 of file base_abstract_atomic_fun.hpp.

◆ makeZeroArray()

template<class Base >
static OperationNode< Base > * CppAD::cg::BaseAbstractAtomicFun< Base >::makeZeroArray ( CodeHandler< Base > &  handler,
size_t  size 
)
inlinestaticprotected

Definition at line 93 of file base_abstract_atomic_fun.hpp.

◆ operator()()

template<class Base >
template<class ADVector >
void CppAD::cg::BaseAbstractAtomicFun< Base >::operator() ( const ADVector &  ax,
ADVector &  ay,
size_t  id = 0 
)
inline

Definition at line 48 of file base_abstract_atomic_fun.hpp.


The documentation for this class was generated from the following file: