FlopCpp trunk
Loading...
Searching...
No Matches
flopc::MP_stochastic_data Class Reference

#include <MP_data.hpp>

+ Inheritance diagram for flopc::MP_stochastic_data:
+ Collaboration diagram for flopc::MP_stochastic_data:

Public Member Functions

 MP_stochastic_data (const MP_set_base &s1=MP_set::getEmpty(), const MP_set_base &s2=MP_set::getEmpty(), const MP_set_base &s3=MP_set::getEmpty(), const MP_set_base &s4=MP_set::getEmpty(), const MP_set_base &s5=MP_set::getEmpty())
 
DataRefoperator() (const MP_index_exp &lcli1=MP_index_exp::getEmpty(), const MP_index_exp &lcli2=MP_index_exp::getEmpty(), const MP_index_exp &lcli3=MP_index_exp::getEmpty(), const MP_index_exp &lcli4=MP_index_exp::getEmpty(), const MP_index_exp &lcli5=MP_index_exp::getEmpty())
 
void operator() () const
 
double & operator() (int lcli1, int lcli2=0, int lcli3=0, int lcli4=0, int lcli5=0)
 Looks up the data based on the index values passed in.
 
- Public Member Functions inherited from flopc::MP_data
void initialize (double d)
 similar to value() but copies the same value to all entries.
 
 MP_data (const MP_set_base &s1=MP_set::getEmpty(), const MP_set_base &s2=MP_set::getEmpty(), const MP_set_base &s3=MP_set::getEmpty(), const MP_set_base &s4=MP_set::getEmpty(), const MP_set_base &s5=MP_set::getEmpty())
 Constructs the MP_data object, and allocates space for data, but does not initialize the data.
 
 MP_data (double *value, const MP_set_base &s1=MP_set::getEmpty(), const MP_set_base &s2=MP_set::getEmpty(), const MP_set_base &s3=MP_set::getEmpty(), const MP_set_base &s4=MP_set::getEmpty(), const MP_set_base &s5=MP_set::getEmpty())
 Construct the object, and uses the data in the original array (shallow copy)
 
 ~MP_data ()
 
void value (const double *d)
 Used to bind and deep copy data into the MP_data data structure.
 
 operator double ()
 
double & operator() (int lcli1, int lcli2=0, int lcli3=0, int lcli4=0, int lcli5=0)
 Looks up the data based on the index values passed in.
 
DataRefoperator() (const MP_index_exp &lcli1=MP_index_exp::getEmpty(), const MP_index_exp &lcli2=MP_index_exp::getEmpty(), const MP_index_exp &lcli3=MP_index_exp::getEmpty(), const MP_index_exp &lcli4=MP_index_exp::getEmpty(), const MP_index_exp &lcli5=MP_index_exp::getEmpty())
 returns a DataRef which refers into the MP_data.
 
void display (std::string s="")
 For displaying data in a human readable format.
 
- Public Member Functions inherited from flopc::RowMajor
int size () const
 
- Public Member Functions inherited from flopc::Named
std::string getName () const
 
void setName (const std::string &n)
 

Additional Inherited Members

- Protected Member Functions inherited from flopc::RowMajor
 RowMajor (int s1, int s2, int s3, int s4, int s5)
 
int f (int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
 
- Protected Member Functions inherited from flopc::Functor
 Functor ()
 
virtual ~Functor ()
 
- Protected Attributes inherited from flopc::MP_data
std::vector< DataRef * > myrefs
 
- Protected Attributes inherited from flopc::RowMajor
int size1
 
int size2
 
int size3
 
int size4
 
int size5
 
int size_
 

Detailed Description

Definition at line 186 of file MP_data.hpp.

Constructor & Destructor Documentation

◆ MP_stochastic_data()

flopc::MP_stochastic_data::MP_stochastic_data ( const MP_set_base & s1 = MP_set::getEmpty(),
const MP_set_base & s2 = MP_set::getEmpty(),
const MP_set_base & s3 = MP_set::getEmpty(),
const MP_set_base & s4 = MP_set::getEmpty(),
const MP_set_base & s5 = MP_set::getEmpty() )
inline

Definition at line 188 of file MP_data.hpp.

Member Function Documentation

◆ operator()() [1/3]

DataRef & flopc::MP_stochastic_data::operator() ( const MP_index_exp & lcli1 = MP_index_exp::getEmpty(),
const MP_index_exp & lcli2 = MP_index_exp::getEmpty(),
const MP_index_exp & lcli3 = MP_index_exp::getEmpty(),
const MP_index_exp & lcli4 = MP_index_exp::getEmpty(),
const MP_index_exp & lcli5 = MP_index_exp::getEmpty() )
inline

Definition at line 196 of file MP_data.hpp.

◆ operator()() [2/3]

void flopc::MP_data::operator() ( ) const
virtual

Reimplemented from flopc::MP_data.

◆ operator()() [3/3]

double & flopc::MP_data::operator() ( int lcli1,
int lcli2 = 0,
int lcli3 = 0,
int lcli4 = 0,
int lcli5 = 0 )
inline

Looks up the data based on the index values passed in.

Note
this is used internally, but may also be useful for spot checking data or in other expressions.

Definition at line 139 of file MP_data.hpp.


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