Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
stan::math::internal::ops_partials_edge< ViewElt, Op > Class Template Reference

#include "stan/math/prim/scal/meta/operands_and_partials.hpp"

Public Member Functions

 ops_partials_edge ()
 
 ops_partials_edge (const Op &)
 

Public Attributes

empty_broadcast_array< ViewElt, Op > partials_
 

Private Member Functions

void dump_partials (ViewElt *) const
 
void dump_operands (void *) const
 
ViewElt dx () const
 
int size () const
 

Friends

template<typename , typename , typename , typename , typename , typename >
class stan::math::operands_and_partials
 

Detailed Description

template<typename ViewElt, typename Op>
class stan::math::internal::ops_partials_edge< ViewElt, Op >

An edge holds both the operands and its associated partial derivatives. They're held together in the same class because then we can keep the templating logic that specializes on type of operand in one place.

This is the base template class that ends up getting instantiated for arithmetic primitives (doubles and ints).

Template Parameters
ViewEltthe type we expect to be at partials_[i]
Opthe type of the operand

Definition at line 29 of file operands_and_partials.hpp.

Constructor & Destructor Documentation

template<typename ViewElt, typename Op>
stan::math::internal::ops_partials_edge< ViewElt, Op >::ops_partials_edge ( )
inline

Definition at line 33 of file operands_and_partials.hpp.

33 {}
template<typename ViewElt, typename Op>
stan::math::internal::ops_partials_edge< ViewElt, Op >::ops_partials_edge ( const Op &  )
inlineexplicit

Definition at line 34 of file operands_and_partials.hpp.

34 {}

Member Function Documentation

template<typename ViewElt, typename Op>
void stan::math::internal::ops_partials_edge< ViewElt, Op >::dump_operands ( void ) const
inlineprivate

Definition at line 41 of file operands_and_partials.hpp.

Referenced by stan::math::operands_and_partials< Op1, Op2, Op3, Op4, Op5, var >::build().

41 {} // reverse mode
template<typename ViewElt, typename Op>
void stan::math::internal::ops_partials_edge< ViewElt, Op >::dump_partials ( ViewElt *  ) const
inlineprivate

Definition at line 40 of file operands_and_partials.hpp.

Referenced by stan::math::operands_and_partials< Op1, Op2, Op3, Op4, Op5, var >::build().

40 {} // reverse mode
template<typename ViewElt, typename Op>
ViewElt stan::math::internal::ops_partials_edge< ViewElt, Op >::dx ( ) const
inlineprivate

Definition at line 42 of file operands_and_partials.hpp.

Referenced by stan::math::operands_and_partials< Op1, Op2, Op3, Op4, Op5, fvar< Dx > >::build().

42 { return 0; } // used for fvars
template<typename ViewElt, typename Op>
int stan::math::internal::ops_partials_edge< ViewElt, Op >::size ( void  ) const
inlineprivate

Definition at line 43 of file operands_and_partials.hpp.

Referenced by stan::math::operands_and_partials< Op1, Op2, Op3, Op4, Op5, var >::build().

43 { return 0; } // reverse mode

Friends And Related Function Documentation

template<typename ViewElt, typename Op>
template<typename , typename , typename , typename , typename , typename >
friend class stan::math::operands_and_partials
friend

Definition at line 38 of file operands_and_partials.hpp.

Member Data Documentation

template<typename ViewElt, typename Op>
empty_broadcast_array<ViewElt, Op> stan::math::internal::ops_partials_edge< ViewElt, Op >::partials_

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