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

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

Public Types

typedef std::vector< std::vector< var > > Op
 
typedef std::vector< double > partial_t
 

Public Member Functions

 ops_partials_edge (const Op &ops)
 

Public Attributes

std::vector< partial_tpartials_vec_
 

Private Member Functions

void dump_partials (double *partials)
 
void dump_operands (vari **varis)
 
int size ()
 

Private Attributes

const Opoperands_
 

Friends

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

Detailed Description

template<>
class stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >

Definition at line 119 of file operands_and_partials.hpp.

Member Typedef Documentation

typedef std::vector<std::vector<var> > stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::Op

Definition at line 121 of file operands_and_partials.hpp.

typedef std::vector<double> stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::partial_t

Definition at line 122 of file operands_and_partials.hpp.

Constructor & Destructor Documentation

stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::ops_partials_edge ( const Op ops)
inlineexplicit

Member Function Documentation

void stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::dump_operands ( vari **  varis)
inlineprivate

Definition at line 144 of file operands_and_partials.hpp.

References MECModelEnuComparisons::i, and calib::j.

144  {
145  int p_i = 0;
146  for (size_t i = 0; i < this->operands_.size(); ++i) {
147  for (size_t j = 0; j < this->operands_[i].size(); ++j, ++p_i) {
148  varis[p_i] = this->operands_[i][j].vi_;
149  }
150  }
151  }
const double j
Definition: BetheBloch.cxx:29
void stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::dump_partials ( double *  partials)
inlineprivate

Definition at line 136 of file operands_and_partials.hpp.

References MECModelEnuComparisons::i, and calib::j.

136  {
137  int p_i = 0;
138  for (size_t i = 0; i < this->partials_vec_.size(); ++i) {
139  for (size_t j = 0; j < this->partials_vec_[i].size(); ++j, ++p_i) {
140  partials[p_i] = this->partials_vec_[i][j];
141  }
142  }
143  }
const double j
Definition: BetheBloch.cxx:29
int stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::size ( void  )
inlineprivate

Definition at line 152 of file operands_and_partials.hpp.

References unlikely.

152  {
153  if (unlikely(this->operands_.size() == 0))
154  return 0;
155  return this->operands_.size() * this->operands_[0].size();
156  }
#define unlikely(expr)
Definition: lz4.cxx:121

Friends And Related Function Documentation

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

Definition at line 133 of file operands_and_partials.hpp.

Member Data Documentation

const Op& stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::operands_
private

Definition at line 134 of file operands_and_partials.hpp.

std::vector<partial_t> stan::math::internal::ops_partials_edge< double, std::vector< std::vector< var > > >::partials_vec_

Definition at line 123 of file operands_and_partials.hpp.


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