FLOPC++
|
Reference to a set of data. More...
#include <MP_data.hpp>
Public Member Functions | |
DataRef (MP_data *d, const MP_index_exp &i1, const MP_index_exp &i2, const MP_index_exp &i3, const MP_index_exp &i4, const MP_index_exp &i5, int s=0) | |
~DataRef () | |
DataRef & | such_that (const MP_boolean &b) |
double | evaluate () const |
int | getStage () const |
const DataRef & | operator= (const DataRef &r) |
const DataRef & | operator= (const Constant &c) |
void | evaluate_lhs (double v) const |
void | operator() () const |
DataRef & | probability (double p) |
![]() | |
virtual int | stage () const |
Private Attributes | |
MP_data * | D |
MP_index_exp | I1 |
MP_index_exp | I2 |
MP_index_exp | I3 |
MP_index_exp | I4 |
MP_index_exp | I5 |
Constant | C |
int | stochastic |
MP_boolean | B |
Additional Inherited Members | |
![]() | |
Constant_base () | |
virtual | ~Constant_base () |
![]() | |
Functor () | |
virtual | ~Functor () |
Functor (const Functor &) | |
![]() | |
int | count |
Reference to a set of data.
Definition at line 27 of file MP_data.hpp.
|
inline |
Definition at line 29 of file MP_data.hpp.
Referenced by flopc::MP_data::operator()(), and flopc::MP_stochastic_data::operator()().
|
inline |
Definition at line 38 of file MP_data.hpp.
References evaluate(), evaluate_lhs(), getStage(), operator()(), operator=(), and such_that().
|
virtual |
Implements flopc::Constant_base.
Definition at line 43 of file MP_data.cpp.
References flopc::MP_set_base::check(), D, flopc::RowMajor::f(), I1, I2, I3, I4, I5, flopc::outOfBound, flopc::MP_data::S1, flopc::MP_data::S2, flopc::MP_data::S3, flopc::MP_data::S4, flopc::MP_data::S5, and flopc::MP_data::v.
Referenced by ~DataRef().
void DataRef::evaluate_lhs | ( | double | v | ) | const |
Definition at line 79 of file MP_data.cpp.
References flopc::MP_set_base::check(), D, flopc::RowMajor::f(), I1, I2, I3, I4, I5, flopc::outOfBound, flopc::MP_data::S1, flopc::MP_data::S2, flopc::MP_data::S3, flopc::MP_data::S4, flopc::MP_data::S5, and flopc::MP_data::v.
Referenced by operator()(), and ~DataRef().
|
virtual |
Reimplemented from flopc::Constant_base.
Definition at line 60 of file MP_data.cpp.
References flopc::MP_set_base::checkStage(), D, I1, I2, I3, I4, I5, flopc::MP_data::S1, flopc::MP_data::S2, flopc::MP_data::S3, flopc::MP_data::S4, flopc::MP_data::S5, flopc::Constant_base::stage(), and stochastic.
Referenced by ~DataRef().
|
virtual |
Implements flopc::Functor.
Definition at line 33 of file MP_data.cpp.
References C, and evaluate_lhs().
Referenced by flopc::MP_data::operator double(), and ~DataRef().
Definition at line 29 of file MP_data.cpp.
References flopc::Constant_base::Constant.
Referenced by ~DataRef().
Definition at line 23 of file MP_data.cpp.
References B, C, D, flopc::forall(), I1, I2, I3, I4, I5, flopc::MP_data::S1, flopc::MP_data::S2, flopc::MP_data::S3, flopc::MP_data::S4, flopc::MP_data::S5, and such_that().
|
inline |
Definition at line 46 of file MP_data.hpp.
DataRef & DataRef::such_that | ( | const MP_boolean & | b | ) |
|
private |
Definition at line 52 of file MP_data.hpp.
Referenced by operator=(), and such_that().
|
private |
Definition at line 50 of file MP_data.hpp.
Referenced by operator()(), and operator=().
|
private |
Definition at line 48 of file MP_data.hpp.
Referenced by evaluate(), evaluate_lhs(), getStage(), and operator=().
|
private |
Definition at line 49 of file MP_data.hpp.
Referenced by evaluate(), evaluate_lhs(), getStage(), and operator=().
|
private |
Definition at line 49 of file MP_data.hpp.
Referenced by evaluate(), evaluate_lhs(), getStage(), and operator=().
|
private |
Definition at line 49 of file MP_data.hpp.
Referenced by evaluate(), evaluate_lhs(), getStage(), and operator=().
|
private |
Definition at line 49 of file MP_data.hpp.
Referenced by evaluate(), evaluate_lhs(), getStage(), and operator=().
|
private |
Definition at line 49 of file MP_data.hpp.
Referenced by evaluate(), evaluate_lhs(), getStage(), and operator=().
|
private |
Definition at line 51 of file MP_data.hpp.
Referenced by getStage().