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< std::vector< fvar< Dx > > > > Class Template Reference

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

Public Types

typedef std::vector< std::vector< fvar< Dx > > > Op
 
typedef std::vector< Dx > partial_t
 

Public Member Functions

 ops_partials_edge (const Op &ops)
 

Public Attributes

std::vector< partial_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< std::vector< fvar< Dx > > > >

Definition at line 96 of file operands_and_partials.hpp.

Member Typedef Documentation

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

Definition at line 98 of file operands_and_partials.hpp.

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

Definition at line 99 of file operands_and_partials.hpp.

Constructor & Destructor Documentation

template<typename Dx >
stan::math::internal::ops_partials_edge< Dx, std::vector< 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< std::vector< fvar< Dx > > > >::dx ( )
inlineprivate

Definition at line 113 of file operands_and_partials.hpp.

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

113  {
114  Dx derivative(0);
115  for (size_t i = 0; i < this->operands_.size(); ++i) {
116  for (size_t j = 0; j < this->operands_[i].size(); ++j) {
117  derivative += this->partials_vec_[i][j] * this->operands_[i][j].d_;
118  }
119  }
120  return derivative;
121  }
const double j
Definition: BetheBloch.cxx:29
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 110 of file operands_and_partials.hpp.

Member Data Documentation

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

Definition at line 111 of file operands_and_partials.hpp.

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

Definition at line 100 of file operands_and_partials.hpp.


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