Input data set. More...
#include <MP_data.hpp>
Public Member Functions | |
void | operator() () const |
void | initialize (double d) |
similar to value() but copies the same value to all entries. More... | |
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. More... | |
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) More... | |
~MP_data () | |
void | value (const double *d) |
Used to bind and deep copy data into the MP_data data structure. More... | |
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. More... | |
DataRef & | 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()) |
returns a DataRef which refers into the MP_data. More... | |
void | display (std::string s="") |
For displaying data in a human readable format. More... | |
![]() | |
int | size () const |
![]() | |
std::string | getName () const |
void | setName (const std::string &n) |
Protected Attributes | |
std::vector< DataRef * > | myrefs |
![]() | |
int | size1 |
int | size2 |
int | size3 |
int | size4 |
int | size5 |
int | size_ |
Private Member Functions | |
MP_data (const MP_data &) | |
MP_data & | operator= (const MP_data &) |
Private Attributes | |
MP_index | i1 |
MP_index | i2 |
MP_index | i3 |
MP_index | i4 |
MP_index | i5 |
const MP_set_base & | S1 |
const MP_set_base & | S2 |
const MP_set_base & | S3 |
const MP_set_base & | S4 |
const MP_set_base & | S5 |
double * | v |
bool | manageData |
Static Private Attributes | |
static double | outOfBoundData |
Friends | |
class | MP_variable |
class | DisplayData |
class | DataRef |
class | MP_model |
Additional Inherited Members | |
![]() | |
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 |
![]() | |
Functor () | |
virtual | ~Functor () |
Input data set.
This is one of the main public interface classes. It is normally directly constructed given a set of indices (domain) over which it is valid. If the data is not bound at construction, either the value() or initialize() method must be called which (deep) copies in the actual data. If one wishes to refer to external data instead rather than doing a deep copy, use the constructor which takes the value pointer as an argument. This copies the original data pointer value (rather than a deep copy).
This is used for construction of :
Definition at line 71 of file MP_data.hpp.
|
inline |
Constructs the MP_data object, and allocates space for data, but does not initialize the data.
Definition at line 87 of file MP_data.hpp.
|
inline |
Construct the object, and uses the data in the original array (shallow copy)
Definition at line 102 of file MP_data.hpp.
|
inline |
Definition at line 114 of file MP_data.hpp.
|
private |
|
virtual |
Implements flopc::Functor.
|
inline |
similar to value() but copies the same value to all entries.
Definition at line 79 of file MP_data.hpp.
|
inline |
Used to bind and deep copy data into the MP_data data structure.
Definition at line 124 of file MP_data.hpp.
|
inline |
Definition at line 131 of file MP_data.hpp.
|
inline |
Looks up the data based on the index values passed in.
Definition at line 139 of file MP_data.hpp.
|
inline |
returns a DataRef which refers into the MP_data.
Definition at line 158 of file MP_data.hpp.
void flopc::MP_data::display | ( | std::string | s = "" | ) |
For displaying data in a human readable format.
|
friend |
Definition at line 72 of file MP_data.hpp.
|
friend |
Definition at line 73 of file MP_data.hpp.
|
friend |
Definition at line 74 of file MP_data.hpp.
|
friend |
Definition at line 75 of file MP_data.hpp.
|
protected |
Definition at line 173 of file MP_data.hpp.
|
staticprivate |
Definition at line 178 of file MP_data.hpp.
|
private |
Definition at line 180 of file MP_data.hpp.
|
private |
Definition at line 180 of file MP_data.hpp.
|
private |
Definition at line 180 of file MP_data.hpp.
|
private |
Definition at line 180 of file MP_data.hpp.
|
private |
Definition at line 180 of file MP_data.hpp.
|
private |
Definition at line 181 of file MP_data.hpp.
|
private |
Definition at line 181 of file MP_data.hpp.
|
private |
Definition at line 181 of file MP_data.hpp.
|
private |
Definition at line 181 of file MP_data.hpp.
|
private |
Definition at line 181 of file MP_data.hpp.
|
private |
Definition at line 182 of file MP_data.hpp.
|
private |
Definition at line 183 of file MP_data.hpp.