|
escript
Revision_Unversioneddirectory
|
#include <DataReady.h>
Public Member Functions | |
| DataReady (const FunctionSpace &what, const ShapeType &shape, bool isDataEmpty=false) | |
| ~DataReady () | |
| double * | getSampleDataRW (ValueType::size_type sampleNo) |
| Return the sample data for the given sample number. More... | |
| const double * | getSampleDataRO (ValueType::size_type sampleNo) const |
| virtual DataTypes::ValueType & | getVectorRW ()=0 |
| Provide access to underlying storage. Internal use only! More... | |
| virtual const DataTypes::ValueType & | getVectorRO () const =0 |
| virtual bool | hasNaN () const =0 |
| return true if data contains NaN. More... | |
| virtual void | replaceNaN (double value)=0 |
| replaces all NaN values with value More... | |
| virtual void | setSlice (const DataAbstract *value, const DataTypes::RegionType ®ion)=0 |
| Copy the specified region from the given object. More... | |
| DataTypes::ValueType::const_reference | getDataAtOffsetRO (DataTypes::ValueType::size_type i) const |
| get a reference to the beginning of a data point More... | |
| DataTypes::ValueType::reference | getDataAtOffsetRW (DataTypes::ValueType::size_type i) |
| DataReady_ptr | resolve () |
| Return a data object with all points resolved. More... | |
Public Member Functions inherited from escript::DataAbstract | |
| DataAbstract_ptr | getPtr () |
| Return shared pointer managing this object. More... | |
| const_DataAbstract_ptr | getPtr () const |
| DataAbstract (const FunctionSpace &what, const ShapeType &shape, bool isDataEmpty=false) | |
| Constructor for DataAbstract. More... | |
| virtual | ~DataAbstract () |
| Destructor for DataAbstract. More... | |
| virtual std::string | toString () const =0 |
| Write the data as a string. More... | |
| virtual DataAbstract * | deepCopy ()=0 |
| Return a deep copy of the current object. More... | |
| virtual void | dump (const std::string fileName) const |
| dumps the object into a netCDF file More... | |
| int | getNumDPPSample () const |
| Return the number of data points per sample. More... | |
| int | getNumSamples () const |
| Return the number of samples. More... | |
| const DataTypes::ShapeType & | getShape () const |
| Return the shape information for the point data. More... | |
| unsigned int | getRank () const |
| Return the rank information for the point data. More... | |
| virtual ValueType::size_type | getPointOffset (int sampleNo, int dataPointNo) const =0 |
| Return the offset for the given sample. This returns the offset for the given point into the container holding the point data. More... | |
| virtual ValueType::size_type | getPointOffset (int sampleNo, int dataPointNo)=0 |
| virtual ValueType::size_type | getLength () const =0 |
| Return the number of doubles stored for this Data object. More... | |
| virtual double * | getSampleDataByTag (int tag) |
| Return the sample data for the given tag key. NB: If the data isn't tagged an exception will be thrown. More... | |
| virtual size_t | getTagCount () const |
| Return number of tagged values stored in the data object. More... | |
| void | operandCheck (const DataAbstract &right) const |
| Check this and the given RHS operands are compatible. Throws an exception if they aren't. More... | |
| bool | validSamplePointNo (int samplePointNo) const |
| Return true if a valid sample point number. More... | |
| bool | validSampleNo (int sampleNo) const |
| Return true if a valid sample number. More... | |
| const FunctionSpace & | getFunctionSpace () const |
| Return the function space associated with this Data object. More... | |
| virtual DataAbstract * | getSlice (const DataTypes::RegionType ®ion) const =0 |
| Return the given slice from this object. More... | |
| virtual void | setTaggedValue (int tagKey, const DataTypes::ShapeType &pointshape, const DataTypes::ValueType &value, int dataOffset=0) |
| setTaggedValue More... | |
| virtual void | copyToDataPoint (const int sampleNo, const int dataPointNo, const double value) |
| Copy a double value to the data point dataPointNo of sample sampleNo in this object. More... | |
| virtual void | copyToDataPoint (const int sampleNo, const int dataPointNo, const WrappedArray &value) |
| Copy the array object to the data point dataPointNo of sample sampleNo in this object. More... | |
| virtual int | getTagNumber (int dpno) |
| Return the tag number associated with the given data-point number. More... | |
| virtual void | symmetric (DataAbstract *ev) |
| Computes a symmetric matrix (A + AT) / 2. More... | |
| virtual void | nonsymmetric (DataAbstract *ev) |
| Computes a nonsymmetric matrix (A - AT) / 2. More... | |
| virtual void | trace (DataAbstract *ev, int axis_offset) |
| Computes the trace of a matrix. More... | |
| virtual void | transpose (DataAbstract *ev, int axis_offset) |
| Transpose each data point of this Data object around the given axis. More... | |
| virtual void | swapaxes (DataAbstract *ev, int axis0, int axis1) |
| swaps components axis0 and axis1 More... | |
| virtual void | eigenvalues (DataAbstract *ev) |
| solves the eigenvalue problem this*V=ev*V for the eigenvalues ev More... | |
| virtual int | matrixInverse (DataAbstract *out) const |
| invert square matricies More... | |
| virtual void | setToZero () |
| sets values to zero More... | |
| 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 More... | |
| virtual void | reorderByReferenceIDs (dim_t *reference_ids) |
| reorders data sample ordered by reference_ids to the ordering of the functions space More... | |
| unsigned int | getNoValues () const |
| Return the number of values in the shape for this object. More... | |
| bool | isLazy () const |
| virtual bool | isConstant () const |
| virtual bool | isExpanded () const |
| virtual bool | actsExpanded () const |
| Return true if this Data is expanded or resolves to expanded. That is, if it has a separate value for each datapoint in the sample. More... | |
| virtual bool | isTagged () const |
| bool | isEmpty () const |
| void | addOwner (Data *) |
| void | removeOwner (Data *) |
| bool | isShared () const |
| Is this object owned by more than one Data object. More... | |
Private Types | |
| typedef DataAbstract | parent |
Additional Inherited Members | |
Public Types inherited from escript::DataAbstract | |
| typedef DataTypes::ValueType | ValueType |
| typedef DataTypes::ShapeType | ShapeType |
Protected Member Functions inherited from escript::DataAbstract | |
| bool | checkNoSharing () const |
| Returns true if this object is not shared. For internal use only. - It may not be particularly fast. More... | |
| void | makeLazyShared () |
| Marks this DataAbstract shared as LazyData For internal use only. More... | |
Protected Attributes inherited from escript::DataAbstract | |
| std::vector< Data * > | m_owners |
| bool | m_lazyshared |
Base class for Data which do not need to be resolved. Internally this means they have getVectorRO and getVectorRW methods.
|
private |
| escript::DataReady::DataReady | ( | const FunctionSpace & | what, |
| const ShapeType & | shape, | ||
| bool | isDataEmpty = false |
||
| ) |
|
inline |
|
inline |
get a reference to the beginning of a data point
References getVectorRO().
Referenced by escript::Data::getDataAtOffsetRO(), escript::Data::getDataPointRO(), and ~DataReady().
|
inline |
References getVectorRW().
Referenced by escript::Data::getDataAtOffsetRW(), escript::Data::getDataPointRW(), and ~DataReady().
|
inline |
References escript::DataAbstract::getPointOffset(), and getVectorRO().
Referenced by escript::Data::getSampleDataRO(), and ~DataReady().
|
inline |
Return the sample data for the given sample number.
References escript::DataAbstract::getPointOffset(), and getVectorRW().
Referenced by escript::Data::getSampleDataRW(), and ~DataReady().
|
pure virtual |
Implemented in escript::DataTagged, escript::DataConstant, escript::DataExpanded, and escript::DataEmpty.
Referenced by escript::binaryOp(), getDataAtOffsetRO(), escript::Data::getDataRO(), getSampleDataRO(), escript::Data::interpolateFromTable1D(), escript::Data::interpolateFromTable2D(), escript::Data::interpolateFromTable3D(), escript::Data::nonuniforminterp(), escript::Data::nonuniformslope(), escript::Data::toListOfTuples(), and ~DataReady().
|
pure virtual |
Provide access to underlying storage. Internal use only!
Implemented in escript::DataTagged, escript::DataConstant, escript::DataExpanded, and escript::DataEmpty.
Referenced by escript::Data::copyWithMask(), getDataAtOffsetRW(), escript::Data::getExpandedVectorReference(), getSampleDataRW(), escript::TestDomain::getX(), escript::Data::interpolateFromTable1D(), escript::Data::interpolateFromTable2D(), escript::Data::interpolateFromTable3D(), escript::Data::nonuniforminterp(), escript::Data::nonuniformslope(), and ~DataReady().
|
pure virtual |
return true if data contains NaN.
Implemented in escript::DataExpanded, escript::DataTagged, escript::DataEmpty, and escript::DataConstant.
Referenced by escript::Data::hasNaN(), escript::Data::infWorker(), escript::Data::LsupWorker(), escript::Data::supWorker(), and ~DataReady().
|
pure virtual |
replaces all NaN values with value
Implemented in escript::DataExpanded, escript::DataTagged, escript::DataEmpty, and escript::DataConstant.
Referenced by escript::Data::replaceNaN(), and ~DataReady().
|
virtual |
Return a data object with all points resolved.
Implements escript::DataAbstract.
References escript::DataAbstract::getPtr().
Referenced by ~DataReady().
|
pure virtual |
Copy the specified region from the given object.
| value | - Input - Data to copy from |
| region | - Input - Region to copy. |
Implemented in escript::DataTagged, escript::DataExpanded, escript::DataConstant, and escript::DataEmpty.
Referenced by escript::Data::setSlice(), and ~DataReady().
1.8.11