18 #if !defined escript_DataTagged_20040615_H
19 #define escript_DataTagged_20040615_H
208 dump(
const std::string fileName)
const;
255 int dataPointNo)
const;
Give a short description of what FunctionSpace does.
Definition: FunctionSpace.h:46
DataVector implements an arbitrarily long vector of data values. DataVector is the underlying data co...
Definition: DataVector.h:44
virtual void symmetric(DataAbstract *ev)
Computes a symmetric matrix (A + AT) / 2.
Definition: DataTagged.cpp:565
void addTag(int tagKey)
addTag - does not modify the default value for this object. ** Not unit tested ** ...
Definition: DataTagged.cpp:429
bool isCurrentTag(int tag) const
isCurrentTag
Definition: DataTagged.h:631
DataTypes::ShapeType ShapeType
Definition: DataAbstract.h:67
DataTypes::ValueType::size_type getDefaultOffset() const
Returns the offset in the structure which stores the default value.
Definition: DataTagged.h:639
DataTagged()
Default constructor for DataTagged.
Definition: DataTagged.cpp:39
ValueType m_data
Definition: DataTagged.h:625
void addTaggedValue(int tagKey, const DataTypes::ShapeType &pointshape, const ValueType &value, int dataOffset=0)
addTaggedValue
Definition: DataTagged.cpp:395
Definition: DataReady.h:35
std::vector< std::pair< int, int > > RegionType
Definition: DataTypes.h:39
virtual ValueType::size_type getPointOffset(int sampleNo, int dataPointNo) const
getPointOffset
Definition: DataTagged.cpp:505
void setTaggedValue(int tagKey, const DataTypes::ShapeType &pointshape, const ValueType &value, int dataOffset=0)
setTaggedValue
Definition: DataTagged.cpp:316
DataConstant stores a single data point which represents the entire function space.
Definition: DataConstant.h:37
size_type size() const
Return the number of elements in this DataVector.
Definition: DataVector.h:215
const DataMapType & getTagLookup() const
getTagLookup
Definition: DataTagged.h:660
DataTypes::ValueType::const_reference getDataByTagRO(int tag, DataTypes::ValueType::size_type i) const
Definition: DataTagged.cpp:542
std::vector< int > ShapeType
The shape of a single datapoint.
Definition: DataTypes.h:38
Simulates a full dataset accessible via sampleNo and dataPointNo.
Definition: DataTagged.h:43
virtual void transpose(DataAbstract *ev, int axis_offset)
Transpose each data point of this Data object around the given axis.
Definition: DataTagged.cpp:630
bool hasNaN() const
Return true if any one of the datapoints contains a NaN.
Definition: DataTagged.cpp:472
virtual int getTagNumber(int dpno)
Return the tag number associated with the given data-point number according to the associated functio...
Definition: DataTagged.cpp:286
std::vector< ValueType::ElementType > ValueBatchType
Definition: DataTagged.h:52
DataTypes::ValueType::reference getDataByTagRW(int tag, DataTypes::ValueType::size_type i)
getDataByTag
Definition: DataTagged.cpp:553
DataTypes::ValueType & getVectorRW()
Return a reference to the underlying DataVector.
Definition: DataTagged.cpp:869
virtual void setSlice(const DataAbstract *other, const DataTypes::RegionType ®ion)
setSlice
Definition: DataTagged.cpp:236
static const int m_defaultValueOffset
Definition: DataTagged.h:621
bool isTagged() const
Definition: DataTagged.h:152
std::map< int, int > DataMapType
Definition: DataTagged.h:56
virtual DataAbstract * getSlice(const DataTypes::RegionType ®ion) const
getSlice
Definition: DataTagged.cpp:200
virtual void setToZero()
sets all values to zero
Definition: DataTagged.cpp:766
virtual void eigenvalues(DataAbstract *ev)
solves the eigenvalue problem this*V=ev*V for the eigenvalues ev
Definition: DataTagged.cpp:672
virtual void trace(DataAbstract *ev, int axis_offset)
Computes the trace of a matrix.
Definition: DataTagged.cpp:609
virtual void nonsymmetric(DataAbstract *ev)
Computes a nonsymmetric matrix (A - AT) / 2.
Definition: DataTagged.cpp:587
virtual int matrixInverse(DataAbstract *out) const
invert square matricies
Definition: DataTagged.cpp:732
const ElementType & const_reference
Definition: DataVector.h:62
DataMapType m_offsetLookup
Definition: DataTagged.h:617
virtual void eigenvalues_and_eigenvectors(DataAbstract *ev, DataAbstract *V, const double tol=1.e-13)
solves the eigenvalue problem this*V=ev*V for the eigenvalues ev and eigenvectors V ...
Definition: DataTagged.cpp:694
virtual ValueType::size_type getLength() const
getLength
Definition: DataTagged.h:667
DataTypes::ValueType::reference getDefaultValueRW(DataTypes::ValueType::size_type i)
getDefaultValue
Definition: DataTagged.h:646
DataTypes::ValueType::const_reference getDefaultValueRO(DataTypes::ValueType::size_type i) const
Definition: DataTagged.h:653
#define V(_K_, _I_)
Definition: ShapeFunctions.cpp:120
std::vector< int > TagListType
Definition: DataTagged.h:49
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:64
ElementType & reference
Definition: DataVector.h:61
DataReady parent
Definition: DataTagged.h:44
virtual void swapaxes(DataAbstract *ev, int axis0, int axis1)
swaps components axis0 and axis1
Definition: DataTagged.cpp:651
virtual void dump(const std::string fileName) const
dumps the object into a netCDF file
Definition: DataTagged.cpp:773
Definition: DataAbstract.h:61
DataTypes::ValueType ValueType
Definition: DataTagged.h:51
const DataTypes::ValueType & getVectorRO() const
Definition: DataTagged.cpp:876
virtual std::string toString() const
Write the data as a string. Writes out each tag, including the default, and the data-point which is a...
Definition: DataTagged.cpp:485
long size_type
Definition: DataVector.h:60
virtual DataAbstract * deepCopy()
Return a deep copy of the current object.
Definition: DataTagged.cpp:194
virtual ~DataTagged()
Destructor.
Definition: DataTagged.h:148
virtual double * getSampleDataByTag(int tag)
getSampleDataByTag
Definition: DataTagged.cpp:457
void addTaggedValues(const TagListType &tagKeys, const ValueBatchType &values, const ShapeType &vShape)
addTaggedValues
Definition: DataTagged.cpp:341
DataTypes::ValueType::size_type getOffsetForTag(int tag) const
getOffsetForTag
Definition: DataTagged.cpp:531