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< Eigen::Matrix< fvar< Dx >, R, C > > > Class Template Reference

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

Public Types

typedef std::vector< Eigen::Matrix< fvar< Dx >, R, C > > Op
 
typedef Eigen::Matrix< Dx,-1,-1 > 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, int R, int C>
class stan::math::internal::ops_partials_edge< Dx, std::vector< Eigen::Matrix< fvar< Dx >, R, C > > >

Definition at line 67 of file operands_and_partials.hpp.

Member Typedef Documentation

template<typename Dx , int R, int C>
typedef std::vector<Eigen::Matrix<fvar<Dx>, R, C> > stan::math::internal::ops_partials_edge< Dx, std::vector< Eigen::Matrix< fvar< Dx >, R, C > > >::Op

Definition at line 69 of file operands_and_partials.hpp.

template<typename Dx , int R, int C>
typedef Eigen::Matrix<Dx, -1, -1> stan::math::internal::ops_partials_edge< Dx, std::vector< Eigen::Matrix< fvar< Dx >, R, C > > >::partial_t

Definition at line 70 of file operands_and_partials.hpp.

Constructor & Destructor Documentation

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

Definition at line 72 of file operands_and_partials.hpp.

References stan::math::cols(), MECModelEnuComparisons::i, stan::math::rows(), and Zero().

73  : partials_vec_(ops.size()), operands_(ops) {
74  for (size_t i = 0; i < ops.size(); ++i) {
75  partials_vec_[i] = partial_t::Zero(ops[i].rows(), ops[i].cols());
76  }
77  }
int rows(const Eigen::Matrix< T, R, C > &m)
Definition: rows.hpp:20
int cols(const Eigen::Matrix< T, R, C > &m)
Definition: cols.hpp:20
void Zero()

Member Function Documentation

template<typename Dx , int R, int C>
Dx stan::math::internal::ops_partials_edge< Dx, std::vector< Eigen::Matrix< fvar< Dx >, R, C > > >::dx ( )
inlineprivate

Definition at line 84 of file operands_and_partials.hpp.

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

84  {
85  Dx derivative(0);
86  for (size_t i = 0; i < this->operands_.size(); ++i) {
87  for (int j = 0; j < this->operands_[i].size(); ++j) {
88  derivative += this->partials_vec_[i](j) * this->operands_[i](j).d_;
89  }
90  }
91  return derivative;
92  }
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 , int R, int C>
template<typename , typename , typename , typename , typename , typename >
friend class stan::math::operands_and_partials
friend

Definition at line 81 of file operands_and_partials.hpp.

Member Data Documentation

template<typename Dx , int R, int C>
const Op& stan::math::internal::ops_partials_edge< Dx, std::vector< Eigen::Matrix< fvar< Dx >, R, C > > >::operands_
private

Definition at line 82 of file operands_and_partials.hpp.

template<typename Dx , int R, int C>
std::vector<partial_t> stan::math::internal::ops_partials_edge< Dx, std::vector< Eigen::Matrix< fvar< Dx >, R, C > > >::partials_vec_

Definition at line 71 of file operands_and_partials.hpp.


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