Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > > Class Template Reference

#include "stan/math/fwd/mat/meta/operands_and_partials.hpp"

Public Types

typedef std::vector< fvar< Dx > > Op
 
typedef Eigen::Matrix< Dx,-1, 1 > partials_t
 

Public Member Functions

 ops_partials_edge (const Op &ops)
 

Public Attributes

partials_t partials_
 
broadcast_array< partials_tpartials_vec_
 

Private Member Functions

Dx dx ()
 

Private Attributes

const Opoperands_
 

Friends

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

Detailed Description

template<typename Dx>
class stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >

Definition at line 14 of file operands_and_partials.hpp.

Member Typedef Documentation

template<typename Dx >
typedef std::vector<fvar<Dx> > stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >::Op

Definition at line 16 of file operands_and_partials.hpp.

template<typename Dx >
typedef Eigen::Matrix<Dx, -1, 1> stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >::partials_t

Definition at line 17 of file operands_and_partials.hpp.

Constructor & Destructor Documentation

template<typename Dx >
stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >::ops_partials_edge ( const Op ops)
inlineexplicit

Member Function Documentation

template<typename Dx >
Dx stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >::dx ( )
inlineprivate

Definition at line 30 of file operands_and_partials.hpp.

References stan::math::derivative(), and MECModelEnuComparisons::i.

30  {
31  Dx derivative(0);
32  for (size_t i = 0; i < this->operands_.size(); ++i) {
33  derivative += this->partials_[i] * this->operands_[i].d_;
34  }
35  return derivative;
36  }
void derivative(const F &f, const T &x, T &fx, T &dfx_dx)
Definition: derivative.hpp:24

Friends And Related Function Documentation

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

Definition at line 27 of file operands_and_partials.hpp.

Member Data Documentation

template<typename Dx >
const Op& stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >::operands_
private

Definition at line 28 of file operands_and_partials.hpp.

template<typename Dx >
partials_t stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >::partials_

Definition at line 18 of file operands_and_partials.hpp.

template<typename Dx >
broadcast_array<partials_t> stan::math::internal::ops_partials_edge< Dx, std::vector< fvar< Dx > > >::partials_vec_

Definition at line 19 of file operands_and_partials.hpp.


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