#include <Data.h>
Public Types | |
typedef double(* | UnaryDFunPtr )(double) |
typedef double(* | BinaryDFunPtr )(double, double) |
Public Member Functions | |
Data () | |
Default constructor. Creates a DataEmpty object. | |
Data (const Data &inData) | |
Copy constructor. WARNING: Only performs a shallow copy. | |
Data (const Data &inData, const FunctionSpace &what) | |
Constructor from another Data object. If "what" is different from the function space of inData the inData are tried to be interpolated to what, otherwise a shallow copy of inData is returned. | |
Data (const DataTypes::ValueType &value, const DataTypes::ShapeType &shape, const FunctionSpace &what=FunctionSpace(), bool expanded=false) | |
Copy Data from an existing vector. | |
Data (double value, const DataTypes::ShapeType &dataPointShape=DataTypes::ShapeType(), const FunctionSpace &what=FunctionSpace(), bool expanded=false) | |
Constructor which creates a Data with points having the specified shape. | |
Data (const Data &inData, const DataTypes::RegionType ®ion) | |
Constructor which performs a deep copy of a region from another Data object. | |
Data (const boost::python::object &value, const FunctionSpace &what=FunctionSpace(), bool expanded=false) | |
Constructor which copies data from any object that can be treated like a python array/sequence. | |
Data (const boost::python::object &value, const Data &other) | |
Constructor which creates a DataConstant. Copies data from any object that can be treated like a python array/sequence. All other parameters are copied from other. | |
Data (double value, const boost::python::tuple &shape=boost::python::make_tuple(), const FunctionSpace &what=FunctionSpace(), bool expanded=false) | |
Constructor which creates a DataConstant of "shape" with constant value. | |
Data (DataAbstract *underlyingdata) | |
Create a Data using an existing DataAbstract. Warning: The new object assumes ownership of the pointer! Once you have passed the pointer, do not delete it. | |
Data (DataAbstract_ptr underlyingdata) | |
Create a Data based on the supplied DataAbstract. | |
~Data () | |
Destructor. | |
void | copy (const Data &other) |
Make this object a deep copy of "other". | |
Data | copySelf () |
Return a pointer to a deep copy of this object. | |
Data | delay () |
produce a delayed evaluation version of this Data. | |
void | delaySelf () |
convert the current data into lazy data. | |
void | setProtection () |
switches on update protection | |
bool | isProtected () const |
Returns true, if the data object is protected against update. | |
const boost::python::object | getValueOfDataPointAsTuple (int dataPointNo) |
Return the value of a data point as a python tuple. | |
void | setValueOfDataPointToPyObject (int dataPointNo, const boost::python::object &py_object) |
sets the values of a data-point from a python object on this process | |
void | setValueOfDataPointToArray (int dataPointNo, const boost::python::object &) |
sets the values of a data-point from a array-like object on this process | |
void | setValueOfDataPoint (int dataPointNo, const double) |
sets the values of a data-point on this process | |
const boost::python::object | getValueOfGlobalDataPointAsTuple (int procNo, int dataPointNo) |
Return a data point across all processors as a python tuple. | |
int | getTagNumber (int dpno) |
Return the tag number associated with the given data-point. | |
escriptDataC | getDataC () |
Return the C wrapper for the Data object. | |
escriptDataC | getDataC () const |
Return the C wrapper for the Data object - const version. | |
size_t | getSampleBufferSize () const |
How much space is required to evaulate a sample of the Data. | |
std::string | toString () const |
Write the data as a string. For large amounts of data, a summary is printed. | |
void | expand () |
Whatever the current Data type make this into a DataExpanded. | |
void | tag () |
If possible convert this Data to DataTagged. This will only allow Constant data to be converted to tagged. An attempt to convert Expanded data to tagged will throw an exception. | |
void | resolve () |
If this data is lazy, then convert it to ready data. What type of ready data depends on the expression. For example, Constant+Tagged==Tagged. | |
void | requireWrite () |
Ensures data is ready for write access. This means that the data will be resolved if lazy and will be copied if shared with another Data object. | |
bool | isExpanded () const |
Return true if this Data is expanded. | |
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. | |
bool | isTagged () const |
Return true if this Data is tagged. | |
bool | isConstant () const |
Return true if this Data is constant. | |
bool | isLazy () const |
Return true if this Data is lazy. | |
bool | isReady () const |
Return true if this data is ready. | |
bool | isEmpty () const |
Return true if this Data holds an instance of DataEmpty. This is _not_ the same as asking if the object contains datapoints. | |
const FunctionSpace & | getFunctionSpace () const |
Return the function space. | |
const FunctionSpace | getCopyOfFunctionSpace () const |
Return a copy of the function space. | |
const_Domain_ptr | getDomain () const |
Return the domain. | |
Domain_ptr | getDomainPython () const |
Return the domain. TODO: For internal use only. This should be removed. | |
const AbstractDomain | getCopyOfDomain () const |
Return a copy of the domain. | |
unsigned int | getDataPointRank () const |
Return the rank of the point data. | |
int | getNumDataPoints () const |
Return the number of data points. | |
int | getNumSamples () const |
Return the number of samples. | |
int | getNumDataPointsPerSample () const |
Return the number of data points per sample. | |
int | getNoValues () const |
Return the number of values in the shape for this object. | |
void | dump (const std::string fileName) const |
dumps the object into a netCDF file | |
const boost::python::object | toListOfTuples (bool scalarastuple=true) |
returns the values of the object as a list of tuples (one for each datapoint). | |
const DataAbstract::ValueType::value_type * | getSampleDataRO (DataAbstract::ValueType::size_type sampleNo, BufferGroup *bufferg=0) |
Return the sample data for the given sample no. This is not the preferred interface but is provided for use by C code. The bufferg parameter is only required for LazyData. | |
DataAbstract::ValueType::value_type * | getSampleDataRW (DataAbstract::ValueType::size_type sampleNo) |
Return the sample data for the given sample no. This is not the preferred interface but is provided for use by C code. | |
DataAbstract::ValueType::value_type * | getSampleDataByTag (int tag) |
Return the sample data for the given tag. If an attempt is made to access data that isn't tagged an exception will be thrown. | |
DataTypes::ValueType::const_reference | getDataPointRO (int sampleNo, int dataPointNo) |
Return a reference into the DataVector which points to the specified data point. | |
DataTypes::ValueType::reference | getDataPointRW (int sampleNo, int dataPointNo) |
Return a reference into the DataVector which points to the specified data point. | |
DataTypes::ValueType::size_type | getDataOffset (int sampleNo, int dataPointNo) |
Return the offset for the given sample and point within the sample. | |
const DataTypes::ShapeType & | getDataPointShape () const |
Return a reference to the data point shape. | |
const boost::python::tuple | getShapeTuple () const |
Return the data point shape as a tuple of integers. | |
int | getDataPointSize () const |
Return the size of the data point. It is the product of the data point shape dimensions. | |
DataTypes::ValueType::size_type | getLength () const |
Return the number of doubles stored for this Data. | |
void | setTaggedValueByName (std::string name, const boost::python::object &value) |
Assign the given value to the tag assocciated with name. Implicitly converts this object to type DataTagged. Throws an exception if this object cannot be converted to a DataTagged object or name cannot be mapped onto a tag key. | |
void | setTaggedValue (int tagKey, const boost::python::object &value) |
Assign the given value to the tag. Implicitly converts this object to type DataTagged if it is constant. | |
void | setTaggedValueFromCPP (int tagKey, const DataTypes::ShapeType &pointshape, const DataTypes::ValueType &value, int dataOffset=0) |
Assign the given value to the tag. Implicitly converts this object to type DataTagged if it is constant. | |
void | copyWithMask (const Data &other, const Data &mask) |
Copy other Data object into this Data object where mask is positive. | |
void | setToZero () |
set all values to zero | |
Data | interpolate (const FunctionSpace &functionspace) const |
Interpolates this onto the given functionspace and returns the result as a Data object. | |
Data | gradOn (const FunctionSpace &functionspace) const |
Calculates the gradient of the data at the data points of functionspace. If functionspace is not present the function space of Function(getDomain()) is used. | |
Data | grad () const |
boost::python::object | integrateToTuple_const () const |
Calculate the integral over the function space domain as a python tuple. | |
boost::python::object | integrateToTuple () |
Calculate the integral over the function space domain as a python tuple. | |
Data | oneOver () const |
Returns 1./ Data object. | |
Data | wherePositive () const |
Return a Data with a 1 for +ive values and a 0 for 0 or -ive values. | |
Data | whereNegative () const |
Return a Data with a 1 for -ive values and a 0 for +ive or 0 values. | |
Data | whereNonNegative () const |
Return a Data with a 1 for +ive or 0 values and a 0 for -ive values. | |
Data | whereNonPositive () const |
Return a Data with a 1 for -ive or 0 values and a 0 for +ive values. | |
Data | whereZero (double tol=0.0) const |
Return a Data with a 1 for 0 values and a 0 for +ive or -ive values. | |
Data | whereNonZero (double tol=0.0) const |
Return a Data with a 0 for 0 values and a 1 for +ive or -ive values. | |
double | Lsup () |
Return the maximum absolute value of this Data object. | |
double | Lsup_const () const |
double | sup () |
Return the maximum value of this Data object. | |
double | sup_const () const |
double | inf () |
Return the minimum value of this Data object. | |
double | inf_const () const |
Data | abs () const |
Return the absolute value of each data point of this Data object. | |
Data | maxval () const |
Return the maximum value of each data point of this Data object. | |
Data | minval () const |
Return the minimum value of each data point of this Data object. | |
const boost::python::tuple | minGlobalDataPoint () const |
Return the (sample number, data-point number) of the data point with the minimum component value in this Data object. | |
const boost::python::tuple | maxGlobalDataPoint () const |
Return the (sample number, data-point number) of the data point with the minimum component value in this Data object. | |
Data | sign () const |
Return the sign of each data point of this Data object. -1 for negative values, zero for zero values, 1 for positive values. | |
Data | symmetric () const |
Return the symmetric part of a matrix which is half the matrix plus its transpose. | |
Data | nonsymmetric () const |
Return the nonsymmetric part of a matrix which is half the matrix minus its transpose. | |
Data | trace (int axis_offset) const |
Return the trace of a matrix. | |
Data | transpose (int axis_offset) const |
Transpose each data point of this Data object around the given axis. | |
Data | eigenvalues () const |
Return the eigenvalues of the symmetric part at each data point of this Data object in increasing values. Currently this function is restricted to rank 2, square shape, and dimension 3. | |
const boost::python::tuple | eigenvalues_and_eigenvectors (const double tol=1.e-12) const |
Return the eigenvalues and corresponding eigenvcetors of the symmetric part at each data point of this Data object. the eigenvalues are ordered in increasing size where eigenvalues with relative difference less than tol are treated as equal. The eigenvectors are orthogonal, normalized and the sclaed such that the first non-zero entry is positive. Currently this function is restricted to rank 2, square shape, and dimension 3. | |
Data | swapaxes (const int axis0, const int axis1) const |
swaps the components axis0 and axis1 | |
Data | erf () const |
Return the error function erf of each data point of this Data object. | |
Data | sin () const |
Return the sin of each data point of this Data object. | |
Data | cos () const |
Return the cos of each data point of this Data object. | |
Data | tan () const |
Return the tan of each data point of this Data object. | |
Data | asin () const |
Return the asin of each data point of this Data object. | |
Data | acos () const |
Return the acos of each data point of this Data object. | |
Data | atan () const |
Return the atan of each data point of this Data object. | |
Data | sinh () const |
Return the sinh of each data point of this Data object. | |
Data | cosh () const |
Return the cosh of each data point of this Data object. | |
Data | tanh () const |
Return the tanh of each data point of this Data object. | |
Data | asinh () const |
Return the asinh of each data point of this Data object. | |
Data | acosh () const |
Return the acosh of each data point of this Data object. | |
Data | atanh () const |
Return the atanh of each data point of this Data object. | |
Data | log10 () const |
Return the log to base 10 of each data point of this Data object. | |
Data | log () const |
Return the natural log of each data point of this Data object. | |
Data | exp () const |
Return the exponential function of each data point of this Data object. | |
Data | sqrt () const |
Return the square root of each data point of this Data object. | |
Data | neg () const |
Return the negation of each data point of this Data object. | |
Data | pos () const |
Return the identity of each data point of this Data object. Simply returns this object unmodified. | |
Data | powD (const Data &right) const |
Return the given power of each data point of this Data object. | |
Data | powO (const boost::python::object &right) const |
Return the given power of each data point of this boost python object. | |
Data | rpowO (const boost::python::object &left) const |
Return the given power of each data point of this boost python object. | |
void | saveDX (std::string fileName) const |
writes the object to a file in the DX file format | |
void | saveVTK (std::string fileName) const |
writes the object to a file in the VTK file format | |
Data & | operator+= (const Data &right) |
Overloaded operator +=. | |
Data & | operator+= (const boost::python::object &right) |
Data & | operator= (const Data &other) |
Data & | operator-= (const Data &right) |
Overloaded operator -=. | |
Data & | operator-= (const boost::python::object &right) |
Data & | operator*= (const Data &right) |
Overloaded operator *=. | |
Data & | operator*= (const boost::python::object &right) |
Data & | operator/= (const Data &right) |
Overloaded operator /=. | |
Data & | operator/= (const boost::python::object &right) |
bool | probeInterpolation (const FunctionSpace &functionspace) const |
Returns true if this can be interpolated to functionspace. | |
Data | getItem (const boost::python::object &key) const |
Returns a slice from this Data object. | |
void | setItemD (const boost::python::object &key, const Data &value) |
Copies slice from value into this Data object. | |
void | setItemO (const boost::python::object &key, const boost::python::object &value) |
template<class UnaryFunction> | |
void | unaryOp2 (UnaryFunction operation) |
Perform the given unary operation on every element of every data point in this Data object. | |
Data | getSlice (const DataTypes::RegionType ®ion) const |
Return a Data object containing the specified slice of this Data object. | |
void | setSlice (const Data &value, const DataTypes::RegionType ®ion) |
Copy the specified slice from the given value into this Data object. | |
void | print (void) |
print the data values to stdout. Used for debugging | |
int | get_MPIRank (void) const |
return the MPI rank number of the local data MPI_COMM_WORLD is assumed and the result of MPI_Comm_size() is returned | |
int | get_MPISize (void) const |
return the MPI rank number of the local data MPI_COMM_WORLD is assumed and the result of MPI_Comm_rank() is returned | |
long | get_MPIComm (void) const |
return the MPI rank number of the local data MPI_COMM_WORLD is assumed and returned. | |
DataAbstract * | borrowData (void) const |
return the object produced by the factory, which is a DataConstant or DataExpanded TODO Ownership of this object should be explained in doco. | |
DataAbstract_ptr | borrowDataPtr (void) const |
DataReady_ptr | borrowReadyPtr (void) const |
DataTypes::ValueType::const_reference | getDataAtOffsetRO (DataTypes::ValueType::size_type i) |
Return a pointer to the beginning of the datapoint at the specified offset. TODO Eventually these should be inlined. | |
DataTypes::ValueType::reference | getDataAtOffsetRW (DataTypes::ValueType::size_type i) |
BufferGroup * | allocSampleBuffer () const |
Create a buffer for use by getSample Allocates a DataVector large enough for DataLazy::resolveSample to operate on for the current Data. Do not use this buffer for other Data instances (unless you are sure they will be the same size). | |
void | freeSampleBuffer (BufferGroup *buffer) |
Free a buffer allocated with allocSampleBuffer. | |
Private Member Functions | |
double | LsupWorker () const |
double | supWorker () const |
double | infWorker () const |
boost::python::object | integrateWorker () const |
void | calc_minGlobalDataPoint (int &ProcNo, int &DataPointNo) const |
void | calc_maxGlobalDataPoint (int &ProcNo, int &DataPointNo) const |
void | operandCheck (const Data &right) const |
Check *this and the right operand are compatible. Throws an exception if they aren't. | |
template<class BinaryFunction> | |
double | algorithm (BinaryFunction operation, double initial_value) const |
Perform the specified reduction algorithm on every element of every data point in this Data object according to the given function and return the single value result. | |
template<class BinaryFunction> | |
Data | dp_algorithm (BinaryFunction operation, double initial_value) const |
Reduce each data-point in this Data object using the given operation. Return a Data object with the same number of data-points, but with each data-point containing only one value - the result of the reduction operation on the corresponding data-point in this Data object. | |
template<class BinaryFunction> | |
void | binaryOp (const Data &right, BinaryFunction operation) |
Perform the given binary operation on all of the data's elements. The underlying type of the right hand side (right) determines the final type of *this after the operation. For example if the right hand side is expanded *this will be expanded if necessary. RHS is a Data object. | |
void | typeMatchLeft (Data &right) const |
Convert the data type of the RHS to match this. | |
void | typeMatchRight (const Data &right) |
Convert the data type of this to match the RHS. | |
void | initialise (const DataTypes::ValueType &value, const DataTypes::ShapeType &shape, const FunctionSpace &what, bool expanded) |
Construct a Data object of the appropriate type. | |
void | initialise (const WrappedArray &value, const FunctionSpace &what, bool expanded) |
const DataReady * | getReady () const |
DataReady * | getReady () |
DataReady_ptr | getReadyPtr () |
const_DataReady_ptr | getReadyPtr () const |
void | updateShareStatus (bool nowshared) const |
Update the Data's shared flag This indicates that the DataAbstract used by this object is now shared (or no longer shared). For internal use only. | |
bool | isShared () const |
void | forceResolve () |
void | exclusiveWrite () |
if another object is sharing out member data make a copy to work with instead. This code should only be called from single threaded sections of code. | |
void | checkExclusiveWrite () |
checks if caller can have exclusive write to the object | |
void | set_m_data (DataAbstract_ptr p) |
Modify the data abstract hosted by this Data object For internal use only. Passing a pointer to null is permitted (do this in the destructor). | |
Private Attributes | |
bool | m_protected |
bool | m_shared |
bool | m_lazy |
DataAbstract_ptr | m_data |
Friends | |
class | DataAbstract |
Description: Internally, the datapoints are actually stored by a DataAbstract object. The specific instance of DataAbstract used may vary over the lifetime of the Data object. Some methods on this class return references (eg getShape()). These references should not be used after an operation which changes the underlying DataAbstract object. Doing so will lead to invalid memory access. This should not affect any methods exposed via boost::python.
typedef double(* escript::Data::UnaryDFunPtr)(double) |
typedef double(* escript::Data::BinaryDFunPtr)(double, double) |
Data::Data | ( | ) |
Default constructor. Creates a DataEmpty object.
Constructors.
References escript::DataAbstract::getPtr(), m_protected, and set_m_data().
Referenced by binaryOp(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), copySelf(), delay(), dp_algorithm(), getSlice(), interpolate(), and setItemD().
Data::Data | ( | const Data & | inData | ) |
Copy constructor. WARNING: Only performs a shallow copy.
References isProtected(), m_data, m_protected, and set_m_data().
Data::Data | ( | const Data & | inData, | |
const FunctionSpace & | what | |||
) |
Constructor from another Data object. If "what" is different from the function space of inData the inData are tried to be interpolated to what, otherwise a shallow copy of inData is returned.
References getDataPointShape(), escript::FunctionSpace::getDomain(), getDomain(), getFunctionSpace(), isConstant(), isEmpty(), m_data, m_protected, probeInterpolation(), and set_m_data().
Data::Data | ( | const DataTypes::ValueType & | value, | |
const DataTypes::ShapeType & | shape, | |||
const FunctionSpace & | what = FunctionSpace() , |
|||
bool | expanded = false | |||
) |
Data::Data | ( | double | value, | |
const DataTypes::ShapeType & | dataPointShape = DataTypes::ShapeType() , |
|||
const FunctionSpace & | what = FunctionSpace() , |
|||
bool | expanded = false | |||
) |
Constructor which creates a Data with points having the specified shape.
value | - Input - Single value applied to all Data. | |
dataPointShape | - Input - The shape of each data point. | |
what | - Input - A description of what this data represents. | |
expanded | - Input - Flag, if true fill the entire container with the given value. Otherwise a more efficient storage mechanism will be used. |
References initialise(), m_protected, and escript::DataTypes::noValues().
Data::Data | ( | const Data & | inData, | |
const DataTypes::RegionType & | region | |||
) |
Constructor which performs a deep copy of a region from another Data object.
inData | - Input - Input Data object. | |
region | - Input - Region to copy. |
References isLazy(), m_data, m_protected, and set_m_data().
escript::Data::Data | ( | const boost::python::object & | value, | |
const FunctionSpace & | what = FunctionSpace() , |
|||
bool | expanded = false | |||
) |
Constructor which copies data from any object that can be treated like a python array/sequence.
value | - Input - Input data. | |
what | - Input - A description of what this data represents. | |
expanded | - Input - Flag, if true fill the entire container with the value. Otherwise a more efficient storage mechanism will be used. |
escript::Data::Data | ( | const boost::python::object & | value, | |
const Data & | other | |||
) |
Constructor which creates a DataConstant. Copies data from any object that can be treated like a python array/sequence. All other parameters are copied from other.
value | - Input - Input data. | |
other | - Input - contains all other parameters. |
escript::Data::Data | ( | double | value, | |
const boost::python::tuple & | shape = boost::python::make_tuple() , |
|||
const FunctionSpace & | what = FunctionSpace() , |
|||
bool | expanded = false | |||
) |
Constructor which creates a DataConstant of "shape" with constant value.
Data::Data | ( | DataAbstract * | underlyingdata | ) | [explicit] |
Create a Data using an existing DataAbstract. Warning: The new object assumes ownership of the pointer! Once you have passed the pointer, do not delete it.
References escript::DataAbstract::getPtr(), m_protected, and set_m_data().
Data::Data | ( | DataAbstract_ptr | underlyingdata | ) | [explicit] |
Data::~Data | ( | ) |
void Data::copy | ( | const Data & | other | ) |
Make this object a deep copy of "other".
References escript::DataAbstract::getPtr(), m_data, and set_m_data().
Referenced by BOOST_PYTHON_MODULE(), copyWithMask(), operator=(), and pos().
Data Data::copySelf | ( | ) |
Return a pointer to a deep copy of this object.
References Data(), and m_data.
Referenced by BOOST_PYTHON_MODULE().
Data Data::delay | ( | ) |
produce a delayed evaluation version of this Data.
References Data(), and m_data.
Referenced by BOOST_PYTHON_MODULE().
void Data::delaySelf | ( | ) |
void Data::setProtection | ( | ) |
switches on update protection
Member access methods.
References m_protected.
Referenced by BOOST_PYTHON_MODULE(), escript::FunctionSpace::getNormal(), escript::FunctionSpace::getSize(), and escript::FunctionSpace::getX().
bool Data::isProtected | ( | ) | const |
Returns true, if the data object is protected against update.
References m_protected.
Referenced by BOOST_PYTHON_MODULE(), Data(), operator*=(), operator+=(), operator-=(), operator/=(), setSlice(), setTaggedValue(), setTaggedValueFromCPP(), setValueOfDataPoint(), and setValueOfDataPointToArray().
const boost::python::object Data::getValueOfDataPointAsTuple | ( | int | dataPointNo | ) |
Return the value of a data point as a python tuple.
References forceResolve(), getDataAtOffsetRO(), getDataOffset(), getDataPointShape(), getNumDataPointsPerSample(), getNumSamples(), and pointToTuple().
Referenced by BOOST_PYTHON_MODULE().
void Data::setValueOfDataPointToPyObject | ( | int | dataPointNo, | |
const boost::python::object & | py_object | |||
) |
sets the values of a data-point from a python object on this process
References setValueOfDataPointToArray().
Referenced by BOOST_PYTHON_MODULE().
void Data::setValueOfDataPointToArray | ( | int | dataPointNo, | |
const boost::python::object & | obj | |||
) |
sets the values of a data-point from a array-like object on this process
References expand(), forceResolve(), getDataPointRank(), getDataPointShape(), getNumDataPointsPerSample(), escript::WrappedArray::getRank(), escript::WrappedArray::getShape(), isExpanded(), isProtected(), and m_data.
Referenced by BOOST_PYTHON_MODULE(), and setValueOfDataPointToPyObject().
void Data::setValueOfDataPoint | ( | int | dataPointNo, | |
const double | value | |||
) |
sets the values of a data-point on this process
References expand(), forceResolve(), getNumDataPointsPerSample(), isExpanded(), isProtected(), and m_data.
Referenced by BOOST_PYTHON_MODULE().
const boost::python::object Data::getValueOfGlobalDataPointAsTuple | ( | int | procNo, | |
int | dataPointNo | |||
) |
Return a data point across all processors as a python tuple.
References forceResolve(), get_MPIComm(), get_MPIRank(), getDataAtOffsetRO(), getDataOffset(), getDataPointShape(), getNumDataPointsPerSample(), getNumSamples(), MPI_DOUBLE, escript::DataTypes::noValues(), and pointToTuple().
Referenced by BOOST_PYTHON_MODULE().
int Data::getTagNumber | ( | int | dpno | ) |
Return the tag number associated with the given data-point.
References getFunctionSpace(), escript::FunctionSpace::getTagFromDataPointNo(), and isEmpty().
Referenced by BOOST_PYTHON_MODULE().
escriptDataC Data::getDataC | ( | ) |
Return the C wrapper for the Data object.
References escriptDataC::m_dataPtr.
Referenced by finley::MeshAdapter::addPDEToLumpedSystem(), finley::MeshAdapter::addPDEToRHS(), finley::MeshAdapter::addPDEToSystem(), finley::MeshAdapter::addPDEToTransportProblem(), finley::MeshAdapter::interpolateOnDomain(), finley::MeshAdapter::setNewX(), finley::MeshAdapter::setTags(), finley::MeshAdapter::setToGradient(), finley::MeshAdapter::setToIntegrals(), finley::MeshAdapter::setToNormal(), finley::MeshAdapter::setToSize(), and finley::MeshAdapter::setToX().
escriptDataC Data::getDataC | ( | ) | const |
size_t Data::getSampleBufferSize | ( | ) | const |
How much space is required to evaulate a sample of the Data.
References m_data.
Referenced by allocSampleBuffer().
std::string Data::toString | ( | ) | const |
Write the data as a string. For large amounts of data, a summary is printed.
References escript::escriptParams, escript::EscriptParams::getInt(), getLength(), getNumDataPoints(), inf_const(), m_data, and sup_const().
Referenced by BOOST_PYTHON_MODULE(), and escript::operator<<().
void Data::expand | ( | ) |
Whatever the current Data type make this into a DataExpanded.
References escript::DataAbstract::getPtr(), isConstant(), isEmpty(), isExpanded(), isLazy(), isTagged(), m_data, resolve(), and set_m_data().
Referenced by finley::MeshAdapter::addPDEToTransportProblem(), BOOST_PYTHON_MODULE(), finley::TransportProblemAdapter::copyConstraint(), finley::TransportProblemAdapter::copyInitialValue(), copyWithMask(), escript::AbstractTransportProblem::insertConstraint(), integrateToTuple(), finley::MeshAdapter::interpolateOnDomain(), finley::SystemMatrixAdapter::nullifyRowsAndCols(), finley::TransportProblemAdapter::setToSolution(), finley::SystemMatrixAdapter::setToSolution(), setValueOfDataPoint(), setValueOfDataPointToArray(), toListOfTuples(), typeMatchLeft(), typeMatchRight(), and finley::SystemMatrixAdapter::ypAx().
void Data::tag | ( | ) |
If possible convert this Data to DataTagged. This will only allow Constant data to be converted to tagged. An attempt to convert Expanded data to tagged will throw an exception.
References escript::DataAbstract::getPtr(), isConstant(), isEmpty(), isExpanded(), isLazy(), isTagged(), m_data, and set_m_data().
Referenced by BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), copyWithMask(), setTaggedValue(), setTaggedValueFromCPP(), typeMatchLeft(), and typeMatchRight().
void Data::resolve | ( | ) |
If this data is lazy, then convert it to ready data. What type of ready data depends on the expression. For example, Constant+Tagged==Tagged.
References isLazy(), m_data, and set_m_data().
Referenced by BOOST_PYTHON_MODULE(), calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), copyWithMask(), dump(), eigenvalues(), eigenvalues_and_eigenvectors(), expand(), forceResolve(), inf(), Lsup(), maxval(), minval(), requireWrite(), saveDX(), saveVTK(), sup(), typeMatchLeft(), and typeMatchRight().
void Data::requireWrite | ( | ) |
Ensures data is ready for write access. This means that the data will be resolved if lazy and will be copied if shared with another Data object.
References exclusiveWrite(), and resolve().
Referenced by escript::C_TensorBinaryOperation(), finley::TransportProblemAdapter::copyConstraint(), finley::TransportProblemAdapter::copyInitialValue(), finley::SystemMatrixAdapter::nullifyRowsAndCols(), finley::TransportProblemAdapter::setToSolution(), and finley::SystemMatrixAdapter::ypAx().
bool Data::isExpanded | ( | ) | const |
Return true if this Data is expanded.
References m_data.
Referenced by algorithm(), binaryOp(), BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), copyWithMask(), dp_algorithm(), expand(), setValueOfDataPoint(), setValueOfDataPointToArray(), tag(), typeMatchLeft(), and typeMatchRight().
bool Data::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.
References m_data.
Referenced by isExpanded().
bool Data::isTagged | ( | ) | const |
Return true if this Data is tagged.
References m_data.
Referenced by algorithm(), binaryOp(), BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), copyWithMask(), dp_algorithm(), expand(), tag(), typeMatchLeft(), and typeMatchRight().
bool Data::isConstant | ( | ) | const |
Return true if this Data is constant.
References m_data.
Referenced by algorithm(), binaryOp(), BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), copyWithMask(), Data(), dp_algorithm(), expand(), setTaggedValue(), setTaggedValueFromCPP(), tag(), typeMatchLeft(), and typeMatchRight().
bool Data::isLazy | ( | ) | const |
Return true if this Data is lazy.
References m_lazy.
Referenced by algorithm(), allocSampleBuffer(), binaryOp(), BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), checkExclusiveWrite(), Data(), delaySelf(), dp_algorithm(), dump(), eigenvalues(), eigenvalues_and_eigenvectors(), expand(), forceResolve(), getSampleDataRW(), inf(), inf_const(), integrateToTuple(), integrateToTuple_const(), Lsup(), Lsup_const(), maxval(), minval(), resolve(), saveDX(), saveVTK(), setToZero(), sup(), sup_const(), tag(), typeMatchLeft(), and typeMatchRight().
bool Data::isReady | ( | ) | const |
Return true if this data is ready.
References m_data.
Referenced by BOOST_PYTHON_MODULE(), and getDataPointRO().
bool Data::isEmpty | ( | ) | const |
Return true if this Data holds an instance of DataEmpty. This is _not_ the same as asking if the object contains datapoints.
References m_data.
Referenced by algorithm(), BOOST_PYTHON_MODULE(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), escript::convertToData(), copyWithMask(), Data(), dp_algorithm(), expand(), getNumDataPointsPerSample(), getSampleDataRO(), getSampleDataRW(), getTagNumber(), grad(), gradOn(), escript::AbstractTransportProblem::insertConstraint(), isDataPointShapeEqual(), isEmpty(), isExpanded(), numSamplesEqual(), saveDX(), saveVTK(), escript::AbstractTransportProblem::setInitialValue(), setToZero(), and tag().
const FunctionSpace& escript::Data::getFunctionSpace | ( | ) | const [inline] |
Return the function space.
References m_data.
Referenced by binaryOp(), BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), finley::TransportProblemAdapter::copyConstraint(), finley::TransportProblemAdapter::copyInitialValue(), copyWithMask(), Data(), dp_algorithm(), eigenvalues(), eigenvalues_and_eigenvectors(), getDomain(), getDomainPython(), getFunctionSpaceType(), getTagNumber(), finley::MeshAdapter::interpolateACross(), escript::TestDomain::interpolateOnDomain(), escript::NullDomain::interpolateOnDomain(), finley::MeshAdapter::interpolateOnDomain(), nonsymmetric(), finley::SystemMatrixAdapter::nullifyRowsAndCols(), escript::operator*(), operator*=(), escript::operator+(), operator+=(), escript::operator-(), operator-=(), escript::operator/(), operator/=(), powO(), probeInterpolation(), setItemD(), setItemO(), finley::MeshAdapter::setNewX(), setTaggedValueByName(), escript::FunctionSpace::setTags(), finley::MeshAdapter::setToGradient(), finley::MeshAdapter::setToIntegrals(), finley::MeshAdapter::setToNormal(), finley::MeshAdapter::setToSize(), finley::TransportProblemAdapter::setToSolution(), finley::SystemMatrixAdapter::setToSolution(), finley::MeshAdapter::setToX(), setToZero(), escript::AbstractTransportProblem::solve(), escript::AbstractSystemMatrix::solve(), swapaxes(), symmetric(), trace(), transpose(), and finley::SystemMatrixAdapter::ypAx().
const FunctionSpace escript::Data::getCopyOfFunctionSpace | ( | ) | const |
Return a copy of the function space.
const_Domain_ptr escript::Data::getDomain | ( | ) | const [inline] |
Return the domain.
References escript::FunctionSpace::getDomain(), and getFunctionSpace().
Referenced by Data(), grad(), gradOn(), integrateWorker(), saveDX(), saveVTK(), and setTaggedValueByName().
Domain_ptr escript::Data::getDomainPython | ( | ) | const [inline] |
Return the domain. TODO: For internal use only. This should be removed.
References escript::FunctionSpace::getDomainPython(), and getFunctionSpace().
Referenced by BOOST_PYTHON_MODULE().
const AbstractDomain escript::Data::getCopyOfDomain | ( | ) | const |
Return a copy of the domain.
unsigned int escript::Data::getDataPointRank | ( | ) | const [inline] |
Return the rank of the point data.
References m_data.
Referenced by binaryOp(), BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), copyWithMask(), eigenvalues(), eigenvalues_and_eigenvectors(), getDataPointRank(), getDataPointShape(), getItem(), getShapeTuple(), escript::AbstractTransportProblem::insertConstraint(), nonsymmetric(), escript::AbstractTransportProblem::setInitialValue(), setItemD(), setValueOfDataPointToArray(), swapaxes(), symmetric(), toListOfTuples(), trace(), and transpose().
int escript::Data::getNumDataPoints | ( | ) | const [inline] |
Return the number of data points.
References getNumDataPointsPerSample(), and getNumSamples().
Referenced by BOOST_PYTHON_MODULE(), toListOfTuples(), and toString().
int escript::Data::getNumSamples | ( | ) | const [inline] |
Return the number of samples.
References m_data.
Referenced by escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), getDataRW(), getNumDataPoints(), getValueOfDataPointAsTuple(), getValueOfGlobalDataPointAsTuple(), numSamplesEqual(), and print().
int escript::Data::getNumDataPointsPerSample | ( | ) | const [inline] |
Return the number of data points per sample.
References m_data.
Referenced by escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), getNumDataPoints(), getNumDataPointsPerSample(), getValueOfDataPointAsTuple(), getValueOfGlobalDataPointAsTuple(), numSamplesEqual(), print(), setValueOfDataPoint(), and setValueOfDataPointToArray().
int escript::Data::getNoValues | ( | ) | const [inline] |
Return the number of values in the shape for this object.
References m_data.
Referenced by setToZero().
void Data::dump | ( | const std::string | fileName | ) | const |
const boost::python::object Data::toListOfTuples | ( | bool | scalarastuple = true |
) |
returns the values of the object as a list of tuples (one for each datapoint).
scalarastuple | If true, scalar data will produce single valued tuples [(1,) (2,) ...] If false, the result is a list of scalars [1, 2, ...] |
References expand(), get_MPISize(), getDataPointRank(), getDataPointShape(), getDataPointSize(), getNumDataPoints(), getReady(), escript::DataReady::getVectorRO(), pointToTuple1(), pointToTuple2(), pointToTuple3(), and pointToTuple4().
Referenced by BOOST_PYTHON_MODULE().
const DataAbstract::ValueType::value_type * escript::Data::getSampleDataRO | ( | DataAbstract::ValueType::size_type | sampleNo, | |
BufferGroup * | bufferg = 0 | |||
) | [inline] |
Return the sample data for the given sample no. This is not the preferred interface but is provided for use by C code. The bufferg parameter is only required for LazyData.
sampleNo | - Input - the given sample no. | |
bufferg | - A buffer to compute (and store) sample data in will be selected from this group. |
References getReady(), escript::DataReady::getSampleDataRO(), m_data, and escript::DataLazy::resolveSample().
Referenced by getSampleDataRO(), and getSampleDataROFast().
DataAbstract::ValueType::value_type * escript::Data::getSampleDataRW | ( | DataAbstract::ValueType::size_type | sampleNo | ) | [inline] |
Return the sample data for the given sample no. This is not the preferred interface but is provided for use by C code.
sampleNo | - Input - the given sample no. |
References getReady(), escript::DataReady::getSampleDataRW(), and isLazy().
Referenced by finley::TransportProblemAdapter::copyConstraint(), finley::TransportProblemAdapter::copyInitialValue(), getSampleDataRW(), getSampleDataRWFast(), finley::SystemMatrixAdapter::nullifyRowsAndCols(), print(), finley::TransportProblemAdapter::setToSolution(), finley::SystemMatrixAdapter::setToSolution(), and finley::SystemMatrixAdapter::ypAx().
DataAbstract::ValueType::value_type* escript::Data::getSampleDataByTag | ( | int | tag | ) | [inline] |
Return the sample data for the given tag. If an attempt is made to access data that isn't tagged an exception will be thrown.
tag | - Input - the tag key. |
References m_data.
DataTypes::ValueType::const_reference Data::getDataPointRO | ( | int | sampleNo, | |
int | dataPointNo | |||
) |
Return a reference into the DataVector which points to the specified data point.
sampleNo | - Input - | |
dataPointNo | - Input - |
References forceResolve(), escript::DataReady::getDataAtOffsetRO(), escript::DataAbstract::getPointOffset(), getReady(), and isReady().
Referenced by calc_maxGlobalDataPoint(), and calc_minGlobalDataPoint().
DataTypes::ValueType::reference Data::getDataPointRW | ( | int | sampleNo, | |
int | dataPointNo | |||
) |
Return a reference into the DataVector which points to the specified data point.
sampleNo | - Input - | |
dataPointNo | - Input - |
References checkExclusiveWrite(), escript::DataReady::getDataAtOffsetRW(), escript::DataAbstract::getPointOffset(), and getReady().
DataTypes::ValueType::size_type escript::Data::getDataOffset | ( | int | sampleNo, | |
int | dataPointNo | |||
) | [inline] |
Return the offset for the given sample and point within the sample.
References m_data.
Referenced by calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), getValueOfDataPointAsTuple(), getValueOfGlobalDataPointAsTuple(), and escript::load().
const DataTypes::ShapeType& escript::Data::getDataPointShape | ( | ) | const [inline] |
Return a reference to the data point shape.
References m_data.
Referenced by escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), finley::TransportProblemAdapter::copyConstraint(), copyWithMask(), Data(), eigenvalues(), eigenvalues_and_eigenvectors(), getDataPointShape(), getItem(), getShapeTuple(), getValueOfDataPointAsTuple(), getValueOfGlobalDataPointAsTuple(), gradOn(), escript::AbstractTransportProblem::insertConstraint(), integrateWorker(), isDataPointShapeEqual(), nonsymmetric(), setItemD(), setToZero(), setValueOfDataPointToArray(), swapaxes(), symmetric(), toListOfTuples(), trace(), and transpose().
const boost::python::tuple Data::getShapeTuple | ( | ) | const |
Return the data point shape as a tuple of integers.
References getDataPointRank(), and getDataPointShape().
Referenced by BOOST_PYTHON_MODULE().
int Data::getDataPointSize | ( | ) | const |
Return the size of the data point. It is the product of the data point shape dimensions.
References m_data.
Referenced by escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), finley::TransportProblemAdapter::copyConstraint(), finley::TransportProblemAdapter::copyInitialValue(), copyWithMask(), getDataPointSize(), escript::AbstractTransportProblem::insertConstraint(), integrateWorker(), finley::SystemMatrixAdapter::nullifyRowsAndCols(), escript::AbstractTransportProblem::setInitialValue(), finley::TransportProblemAdapter::setToSolution(), finley::SystemMatrixAdapter::setToSolution(), escript::AbstractTransportProblem::solve(), escript::AbstractSystemMatrix::solve(), toListOfTuples(), escript::AbstractSystemMatrix::vectorMultiply(), and finley::SystemMatrixAdapter::ypAx().
DataTypes::ValueType::size_type Data::getLength | ( | ) | const |
Return the number of doubles stored for this Data.
References m_data.
Referenced by getLength(), and toString().
void Data::setTaggedValueByName | ( | std::string | name, | |
const boost::python::object & | value | |||
) |
Assign the given value to the tag assocciated with name. Implicitly converts this object to type DataTagged. Throws an exception if this object cannot be converted to a DataTagged object or name cannot be mapped onto a tag key.
name | - Input - name of tag. | |
value | - Input - Value to associate with given key. |
References exclusiveWrite(), forceResolve(), escript::FunctionSpace::getDomain(), getDomain(), getFunctionSpace(), and setTaggedValue().
Referenced by BOOST_PYTHON_MODULE().
void Data::setTaggedValue | ( | int | tagKey, | |
const boost::python::object & | value | |||
) |
Assign the given value to the tag. Implicitly converts this object to type DataTagged if it is constant.
tagKey | - Input - Integer key. | |
value | - Input - Value to associate with given key. ==>* |
References escript::DataVector::copyFromArray(), exclusiveWrite(), forceResolve(), escript::WrappedArray::getShape(), isConstant(), isProtected(), m_data, and tag().
Referenced by BOOST_PYTHON_MODULE(), and setTaggedValueByName().
void Data::setTaggedValueFromCPP | ( | int | tagKey, | |
const DataTypes::ShapeType & | pointshape, | |||
const DataTypes::ValueType & | value, | |||
int | dataOffset = 0 | |||
) |
Assign the given value to the tag. Implicitly converts this object to type DataTagged if it is constant.
tagKey | - Input - Integer key. | |
pointshape | - Input - The shape of the value parameter | |
value | - Input - Value to associate with given key. | |
dataOffset | - Input - Offset of the begining of the point within the value parameter |
References exclusiveWrite(), forceResolve(), isConstant(), isProtected(), m_data, and tag().
Copy other Data object into this Data object where mask is positive.
References escript::DataTagged::addTag(), copy(), exclusiveWrite(), expand(), getDataPointRank(), getDataPointShape(), getDataPointSize(), escript::DataTagged::getDefaultOffset(), getFunctionSpace(), escript::DataTagged::getOffsetForTag(), getReady(), getReadyPtr(), escript::DataTagged::getTagLookup(), escript::DataReady::getVectorRW(), interpolate(), isConstant(), isEmpty(), isExpanded(), isTagged(), m_data, probeInterpolation(), resolve(), escript::DataTypes::shapeToString(), escript::DataVector::size(), and tag().
Referenced by BOOST_PYTHON_MODULE(), and finley::TransportProblemAdapter::copyConstraint().
void Data::setToZero | ( | ) |
set all values to zero
Data object operation methods and operators.
References exclusiveWrite(), getDataPointShape(), getFunctionSpace(), getNoValues(), escript::DataAbstract::getPtr(), isEmpty(), isLazy(), m_data, and set_m_data().
Referenced by BOOST_PYTHON_MODULE().
Data Data::interpolate | ( | const FunctionSpace & | functionspace | ) | const |
Interpolates this onto the given functionspace and returns the result as a Data object.
References Data().
Referenced by BOOST_PYTHON_MODULE(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), and copyWithMask().
Data Data::gradOn | ( | const FunctionSpace & | functionspace | ) | const |
Calculates the gradient of the data at the data points of functionspace. If functionspace is not present the function space of Function(getDomain()) is used.
References blocktimer_increment(), blocktimer_time(), getDataPointShape(), escript::FunctionSpace::getDim(), getDomain(), escript::FunctionSpace::getDomain(), and isEmpty().
Referenced by BOOST_PYTHON_MODULE(), and grad().
Data Data::grad | ( | ) | const |
References escript::function(), getDomain(), gradOn(), and isEmpty().
Referenced by BOOST_PYTHON_MODULE().
boost::python::object Data::integrateToTuple_const | ( | ) | const |
Calculate the integral over the function space domain as a python tuple.
References integrateWorker(), and isLazy().
boost::python::object Data::integrateToTuple | ( | ) |
Calculate the integral over the function space domain as a python tuple.
References expand(), integrateWorker(), and isLazy().
Referenced by BOOST_PYTHON_MODULE().
Data Data::oneOver | ( | ) | const |
Returns 1./ Data object.
References escript::C_TensorUnaryOperation(), MAKELAZYOP, and escript::RECIP.
Referenced by escript::DataLazy::collapseToReady().
Data Data::wherePositive | ( | ) | const |
Return a Data with a 1 for +ive values and a 0 for 0 or -ive values.
References escript::C_TensorUnaryOperation(), escript::GZ, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::whereNegative | ( | ) | const |
Return a Data with a 1 for -ive values and a 0 for +ive or 0 values.
References escript::C_TensorUnaryOperation(), escript::LZ, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::whereNonNegative | ( | ) | const |
Return a Data with a 1 for +ive or 0 values and a 0 for -ive values.
References escript::C_TensorUnaryOperation(), escript::GEZ, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::whereNonPositive | ( | ) | const |
Return a Data with a 1 for -ive or 0 values and a 0 for +ive values.
References escript::C_TensorUnaryOperation(), escript::LEZ, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::whereZero | ( | double | tol = 0.0 |
) | const |
Return a Data with a 1 for 0 values and a 0 for +ive or -ive values.
References escript::C_TensorUnaryOperation(), escript::EZ, and MAKELAZYOPOFF.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::whereNonZero | ( | double | tol = 0.0 |
) | const |
Return a Data with a 0 for 0 values and a 1 for +ive or -ive values.
References escript::C_TensorUnaryOperation(), MAKELAZYOPOFF, and escript::NEZ.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
double Data::Lsup | ( | ) |
Return the maximum absolute value of this Data object.
The method is not const because lazy data needs to be expanded before Lsup can be computed. The _const form can be used when the Data object is const, however this will only work for Data which is not Lazy.
For Data which contain no samples (or tagged Data for which no tags in use have a value) zero is returned.
References isLazy(), LsupWorker(), and resolve().
Referenced by BOOST_PYTHON_MODULE().
double Data::Lsup_const | ( | ) | const |
References isLazy(), and LsupWorker().
double Data::sup | ( | ) |
Return the maximum value of this Data object.
The method is not const because lazy data needs to be expanded before sup can be computed. The _const form can be used when the Data object is const, however this will only work for Data which is not Lazy.
For Data which contain no samples (or tagged Data for which no tags in use have a value) a large negative value is returned.
References isLazy(), resolve(), and supWorker().
Referenced by BOOST_PYTHON_MODULE().
double Data::sup_const | ( | ) | const |
double Data::inf | ( | ) |
Return the minimum value of this Data object.
The method is not const because lazy data needs to be expanded before inf can be computed. The _const form can be used when the Data object is const, however this will only work for Data which is not Lazy.
For Data which contain no samples (or tagged Data for which no tags in use have a value) a large positive value is returned.
References infWorker(), isLazy(), and resolve().
Referenced by BOOST_PYTHON_MODULE().
double Data::inf_const | ( | ) | const |
Data Data::abs | ( | ) | const |
Return the absolute value of each data point of this Data object.
References escript::ABS, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::maxval | ( | ) | const |
Return the maximum value of each data point of this Data object.
References dp_algorithm(), isLazy(), maxval(), and resolve().
Referenced by BOOST_PYTHON_MODULE(), calc_maxGlobalDataPoint(), and maxval().
Data Data::minval | ( | ) | const |
Return the minimum value of each data point of this Data object.
References dp_algorithm(), isLazy(), minval(), and resolve().
Referenced by BOOST_PYTHON_MODULE(), calc_minGlobalDataPoint(), and minval().
const boost::python::tuple Data::minGlobalDataPoint | ( | ) | const |
Return the (sample number, data-point number) of the data point with the minimum component value in this Data object.
References calc_minGlobalDataPoint().
Referenced by BOOST_PYTHON_MODULE().
const boost::python::tuple Data::maxGlobalDataPoint | ( | ) | const |
Return the (sample number, data-point number) of the data point with the minimum component value in this Data object.
References calc_maxGlobalDataPoint().
Referenced by BOOST_PYTHON_MODULE().
Data Data::sign | ( | ) | const |
Return the sign of each data point of this Data object. -1 for negative values, zero for zero values, 1 for positive values.
References escript::C_TensorUnaryOperation(), escript::fsign(), MAKELAZYOP, and escript::SIGN.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::symmetric | ( | ) | const |
Return the symmetric part of a matrix which is half the matrix plus its transpose.
References getDataPointRank(), getDataPointShape(), getFunctionSpace(), m_data, MAKELAZYOP, escript::SYM, and typeMatchRight().
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::nonsymmetric | ( | ) | const |
Return the nonsymmetric part of a matrix which is half the matrix minus its transpose.
References getDataPointRank(), getDataPointShape(), getFunctionSpace(), m_data, MAKELAZYOP, escript::NSYM, and typeMatchRight().
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::trace | ( | int | axis_offset | ) | const |
Return the trace of a matrix.
References getDataPointRank(), getDataPointShape(), getFunctionSpace(), m_data, MAKELAZYOPOFF, escript::TRACE, and typeMatchRight().
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::transpose | ( | int | axis_offset | ) | const |
Transpose each data point of this Data object around the given axis.
References getDataPointRank(), getDataPointShape(), getFunctionSpace(), m_data, MAKELAZYOPOFF, escript::TRANS, and typeMatchRight().
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::eigenvalues | ( | ) | const |
Return the eigenvalues of the symmetric part at each data point of this Data object in increasing values. Currently this function is restricted to rank 2, square shape, and dimension 3.
References eigenvalues(), getDataPointRank(), getDataPointShape(), getFunctionSpace(), isLazy(), m_data, resolve(), and typeMatchRight().
Referenced by BOOST_PYTHON_MODULE(), and eigenvalues().
const boost::python::tuple Data::eigenvalues_and_eigenvectors | ( | const double | tol = 1.e-12 |
) | const |
Return the eigenvalues and corresponding eigenvcetors of the symmetric part at each data point of this Data object. the eigenvalues are ordered in increasing size where eigenvalues with relative difference less than tol are treated as equal. The eigenvectors are orthogonal, normalized and the sclaed such that the first non-zero entry is positive. Currently this function is restricted to rank 2, square shape, and dimension 3.
References eigenvalues_and_eigenvectors(), getDataPointRank(), getDataPointShape(), getFunctionSpace(), isLazy(), m_data, resolve(), typeMatchRight(), and V.
Referenced by BOOST_PYTHON_MODULE(), and eigenvalues_and_eigenvectors().
Data Data::swapaxes | ( | const int | axis0, | |
const int | axis1 | |||
) | const |
swaps the components axis0 and axis1
References getDataPointRank(), getDataPointShape(), getFunctionSpace(), m_data, MAKELAZYOP2, escript::SWAP, and typeMatchRight().
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::erf | ( | ) | const |
Return the error function erf of each data point of this Data object.
References escript::C_TensorUnaryOperation(), escript::ERF, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::sin | ( | ) | const |
Return the sin of each data point of this Data object.
References MAKELAZYOP, and escript::SIN.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::cos | ( | ) | const |
Return the cos of each data point of this Data object.
References escript::COS, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::tan | ( | ) | const |
Return the tan of each data point of this Data object.
References MAKELAZYOP, and escript::TAN.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::asin | ( | ) | const |
Return the asin of each data point of this Data object.
References escript::ASIN, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::acos | ( | ) | const |
Return the acos of each data point of this Data object.
References escript::ACOS, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::atan | ( | ) | const |
Return the atan of each data point of this Data object.
References escript::ATAN, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::sinh | ( | ) | const |
Return the sinh of each data point of this Data object.
References MAKELAZYOP, and escript::SINH.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::cosh | ( | ) | const |
Return the cosh of each data point of this Data object.
References escript::COSH, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::tanh | ( | ) | const |
Return the tanh of each data point of this Data object.
References MAKELAZYOP, and escript::TANH.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::asinh | ( | ) | const |
Return the asinh of each data point of this Data object.
References escript::ASINH, escript::C_TensorUnaryOperation(), and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::acosh | ( | ) | const |
Return the acosh of each data point of this Data object.
References escript::ACOSH, escript::C_TensorUnaryOperation(), and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::atanh | ( | ) | const |
Return the atanh of each data point of this Data object.
References escript::ATANH, escript::C_TensorUnaryOperation(), and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::log10 | ( | ) | const |
Return the log to base 10 of each data point of this Data object.
References escript::LOG10, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::log | ( | ) | const |
Return the natural log of each data point of this Data object.
References escript::LOG, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::exp | ( | ) | const |
Return the exponential function of each data point of this Data object.
References escript::EXP, and MAKELAZYOP.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::sqrt | ( | ) | const |
Return the square root of each data point of this Data object.
References MAKELAZYOP, and escript::SQRT.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::neg | ( | ) | const |
Return the negation of each data point of this Data object.
References escript::C_TensorUnaryOperation(), MAKELAZYOP, and escript::NEG.
Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().
Data Data::pos | ( | ) | const |
Return the identity of each data point of this Data object. Simply returns this object unmodified.
References copy().
Referenced by BOOST_PYTHON_MODULE().
Return the given power of each data point of this Data object.
right | Input - the power to raise the object to. |
References MAKELAZYBIN, and escript::POW.
Referenced by BOOST_PYTHON_MODULE(), powO(), and rpowO().
Data Data::powO | ( | const boost::python::object & | right | ) | const |
Return the given power of each data point of this boost python object.
right | Input - the power to raise the object to. |
References getFunctionSpace(), and powD().
Referenced by BOOST_PYTHON_MODULE().
Data Data::rpowO | ( | const boost::python::object & | left | ) | const |
Return the given power of each data point of this boost python object.
left | Input - the bases |
References powD().
Referenced by BOOST_PYTHON_MODULE().
void Data::saveDX | ( | std::string | fileName | ) | const |
writes the object to a file in the DX file format
References getDomain(), isEmpty(), isLazy(), resolve(), and saveDX().
Referenced by BOOST_PYTHON_MODULE(), and saveDX().
void Data::saveVTK | ( | std::string | fileName | ) | const |
writes the object to a file in the VTK file format
References getDomain(), isEmpty(), isLazy(), resolve(), and saveVTK().
Referenced by BOOST_PYTHON_MODULE(), and saveVTK().
Overloaded operator +=.
right | - Input - The right hand side. |
References escript::ADD, binaryOp(), exclusiveWrite(), isProtected(), and MAKELAZYBINSELF.
Data & Data::operator+= | ( | const boost::python::object & | right | ) |
References getFunctionSpace(), and isProtected().
References copy(), m_data, m_protected, and set_m_data().
Overloaded operator -=.
right | - Input - The right hand side. |
References binaryOp(), exclusiveWrite(), isProtected(), MAKELAZYBINSELF, and escript::SUB.
Data & Data::operator-= | ( | const boost::python::object & | right | ) |
References getFunctionSpace(), and isProtected().
Overloaded operator *=.
right | - Input - The right hand side. |
References binaryOp(), exclusiveWrite(), isProtected(), MAKELAZYBINSELF, and escript::MUL.
Data & Data::operator*= | ( | const boost::python::object & | right | ) |
References getFunctionSpace(), and isProtected().
Overloaded operator /=.
right | - Input - The right hand side. |
References binaryOp(), escript::DIV, exclusiveWrite(), isProtected(), and MAKELAZYBINSELF.
Data & Data::operator/= | ( | const boost::python::object & | right | ) |
References getFunctionSpace(), and isProtected().
bool Data::probeInterpolation | ( | const FunctionSpace & | functionspace | ) | const |
Returns true if this can be interpolated to functionspace.
References getFunctionSpace(), and escript::FunctionSpace::probeInterpolation().
Referenced by binaryOp(), escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), copyWithMask(), and Data().
Data Data::getItem | ( | const boost::python::object & | key | ) | const |
Returns a slice from this Data object.
Data object slicing methods. /description Implements the [] get operator in python. Calls getSlice.
key | - Input - python slice tuple specifying slice to return. |
References getDataPointRank(), getDataPointShape(), getSlice(), and escript::DataTypes::getSliceRegion().
Referenced by BOOST_PYTHON_MODULE().
void Data::setItemD | ( | const boost::python::object & | key, | |
const Data & | value | |||
) |
Copies slice from value into this Data object.
Implements the [] set operator in python. Calls setSlice.
key | - Input - python slice tuple specifying slice to copy from value. | |
value | - Input - Data object to copy from. |
References Data(), exclusiveWrite(), getDataPointRank(), getDataPointShape(), getFunctionSpace(), escript::DataTypes::getSliceRegion(), and setSlice().
Referenced by BOOST_PYTHON_MODULE(), and setItemO().
void Data::setItemO | ( | const boost::python::object & | key, | |
const boost::python::object & | value | |||
) |
void escript::Data::unaryOp2 | ( | UnaryFunction | operation | ) | [inline] |
Perform the given unary operation on every element of every data point in this Data object.
Data Data::getSlice | ( | const DataTypes::RegionType & | region | ) | const |
void Data::setSlice | ( | const Data & | value, | |
const DataTypes::RegionType & | region | |||
) |
Copy the specified slice from the given value into this Data object.
value | - Input - Data to copy from. | |
region | - Input - Region to copy. |
References exclusiveWrite(), forceResolve(), getReady(), isProtected(), m_data, escript::DataReady::setSlice(), typeMatchLeft(), and typeMatchRight().
Referenced by setItemD().
void Data::print | ( | void | ) |
print the data values to stdout. Used for debugging
References getNumDataPointsPerSample(), getNumSamples(), and getSampleDataRW().
int Data::get_MPIRank | ( | void | ) | const |
return the MPI rank number of the local data MPI_COMM_WORLD is assumed and the result of MPI_Comm_size() is returned
References get_MPIComm().
Referenced by calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), and getValueOfGlobalDataPointAsTuple().
int Data::get_MPISize | ( | void | ) | const |
return the MPI rank number of the local data MPI_COMM_WORLD is assumed and the result of MPI_Comm_rank() is returned
References get_MPIComm().
Referenced by calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), and toListOfTuples().
long Data::get_MPIComm | ( | void | ) | const |
return the MPI rank number of the local data MPI_COMM_WORLD is assumed and returned.
References MPI_COMM_WORLD.
Referenced by calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), get_MPIRank(), get_MPISize(), and getValueOfGlobalDataPointAsTuple().
DataAbstract * Data::borrowData | ( | void | ) | const |
return the object produced by the factory, which is a DataConstant or DataExpanded TODO Ownership of this object should be explained in doco.
References m_data.
Referenced by escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), and escript::load().
DataAbstract_ptr Data::borrowDataPtr | ( | void | ) | const |
References m_data.
Referenced by escript::C_GeneralTensorProduct(), and escript::DataLazy::DataLazy().
DataReady_ptr Data::borrowReadyPtr | ( | void | ) | const |
DataTypes::ValueType::const_reference Data::getDataAtOffsetRO | ( | DataTypes::ValueType::size_type | i | ) |
Return a pointer to the beginning of the datapoint at the specified offset. TODO Eventually these should be inlined.
i | - position(offset) in the underlying datastructure |
References forceResolve(), escript::DataReady::getDataAtOffsetRO(), and getReady().
Referenced by escript::C_GeneralTensorProduct(), escript::C_TensorBinaryOperation(), escript::C_TensorUnaryOperation(), calc_maxGlobalDataPoint(), calc_minGlobalDataPoint(), getValueOfDataPointAsTuple(), and getValueOfGlobalDataPointAsTuple().
DataTypes::ValueType::reference Data::getDataAtOffsetRW | ( | DataTypes::ValueType::size_type | i | ) |
BufferGroup * Data::allocSampleBuffer | ( | ) | const |
Create a buffer for use by getSample Allocates a DataVector large enough for DataLazy::resolveSample to operate on for the current Data. Do not use this buffer for other Data instances (unless you are sure they will be the same size).
In multi-threaded sections, this needs to be called on each thread.
References getSampleBufferSize(), isLazy(), and omp_get_max_threads().
Referenced by allocSampleBuffer().
void Data::freeSampleBuffer | ( | BufferGroup * | buffer | ) |
Free a buffer allocated with allocSampleBuffer.
buffer | Input - pointer to the buffer to deallocate. |
double Data::LsupWorker | ( | ) | const [private] |
double Data::supWorker | ( | ) | const [private] |
double Data::infWorker | ( | ) | const [private] |
boost::python::object Data::integrateWorker | ( | ) | const [private] |
References getDataPointShape(), getDataPointSize(), getDomain(), MPI_COMM_WORLD, MPI_DOUBLE, pointToTuple(), and escript::AbstractContinuousDomain::setToIntegrals().
Referenced by integrateToTuple(), and integrateToTuple_const().
void Data::calc_minGlobalDataPoint | ( | int & | ProcNo, | |
int & | DataPointNo | |||
) | const [private] |
References calc_minGlobalDataPoint(), get_MPIComm(), get_MPIRank(), get_MPISize(), getDataAtOffsetRO(), getDataOffset(), getDataPointRO(), getNumDataPointsPerSample(), getNumSamples(), isLazy(), minval(), MPI_DOUBLE, MPI_INT, and resolve().
Referenced by calc_minGlobalDataPoint(), and minGlobalDataPoint().
void Data::calc_maxGlobalDataPoint | ( | int & | ProcNo, | |
int & | DataPointNo | |||
) | const [private] |
References calc_maxGlobalDataPoint(), get_MPIComm(), get_MPIRank(), get_MPISize(), getDataAtOffsetRO(), getDataOffset(), getDataPointRO(), getNumDataPointsPerSample(), getNumSamples(), isLazy(), maxval(), MPI_DOUBLE, MPI_INT, and resolve().
Referenced by calc_maxGlobalDataPoint(), and maxGlobalDataPoint().
void escript::Data::operandCheck | ( | const Data & | right | ) | const [inline, private] |
Check *this and the right operand are compatible. Throws an exception if they aren't.
right | - Input - The right hand side. |
References m_data.
Referenced by binaryOp().
double escript::Data::algorithm | ( | BinaryFunction | operation, | |
double | initial_value | |||
) | const [inline, private] |
Perform the specified reduction algorithm on every element of every data point in this Data object according to the given function and return the single value result.
Perform the given Data object reduction algorithm on this and return the result. Given operation combines each element of each data point, thus argument object (*this) is a rank n Data object, and returned object is a scalar. Calls escript::algorithm.
References escript::algorithm(), EsysAssert, isConstant(), isEmpty(), isExpanded(), isLazy(), isTagged(), and m_data.
Referenced by infWorker(), LsupWorker(), and supWorker().
Data escript::Data::dp_algorithm | ( | BinaryFunction | operation, | |
double | initial_value | |||
) | const [inline, private] |
Reduce each data-point in this Data object using the given operation. Return a Data object with the same number of data-points, but with each data-point containing only one value - the result of the reduction operation on the corresponding data-point in this Data object.
Perform the given data point reduction algorithm on data and return the result. Given operation combines each element within each data point into a scalar, thus argument object is a rank n Data object, and returned object is a rank 0 Data object. Calls escript::dp_algorithm.
References Data(), escript::dp_algorithm(), EsysAssert, getFunctionSpace(), isConstant(), isEmpty(), isExpanded(), isLazy(), isTagged(), m_data, and escript::DataTypes::scalarShape.
void escript::Data::binaryOp | ( | const Data & | right, | |
BinaryFunction | operation | |||
) | [inline, private] |
Perform the given binary operation on all of the data's elements. The underlying type of the right hand side (right) determines the final type of *this after the operation. For example if the right hand side is expanded *this will be expanded if necessary. RHS is a Data object.
Perform the given binary operation with this and right as operands. Right is a Data object.
References escript::binaryOp(), Data(), EsysAssert, getDataPointRank(), getFunctionSpace(), getReady(), isConstant(), isExpanded(), isLazy(), isTagged(), m_data, operandCheck(), probeInterpolation(), set_m_data(), and typeMatchRight().
Referenced by operator*=(), operator+=(), operator-=(), and operator/=().
void Data::typeMatchLeft | ( | Data & | right | ) | const [private] |
Convert the data type of the RHS to match this.
right | - Input - data type to match. |
References expand(), isConstant(), isExpanded(), isLazy(), isTagged(), resolve(), and tag().
Referenced by setSlice().
void Data::typeMatchRight | ( | const Data & | right | ) | [private] |
Convert the data type of this to match the RHS.
right | - Input - data type to match. |
References expand(), isConstant(), isExpanded(), isLazy(), isTagged(), resolve(), and tag().
Referenced by binaryOp(), eigenvalues(), eigenvalues_and_eigenvectors(), nonsymmetric(), setSlice(), swapaxes(), symmetric(), trace(), and transpose().
void Data::initialise | ( | const DataTypes::ValueType & | value, | |
const DataTypes::ShapeType & | shape, | |||
const FunctionSpace & | what, | |||
bool | expanded | |||
) | [private] |
Construct a Data object of the appropriate type.
References escript::DataAbstract::getPtr(), and set_m_data().
Referenced by Data().
void Data::initialise | ( | const WrappedArray & | value, | |
const FunctionSpace & | what, | |||
bool | expanded | |||
) | [private] |
References escript::DataAbstract::getPtr(), and set_m_data().
const DataReady * escript::Data::getReady | ( | ) | const [inline, private] |
References EsysAssert, and m_data.
Referenced by binaryOp(), copyWithMask(), getDataAtOffsetRO(), getDataAtOffsetRW(), getDataPointRO(), getDataPointRW(), getSampleDataRO(), getSampleDataRW(), setSlice(), and toListOfTuples().
DataReady * escript::Data::getReady | ( | ) | [inline, private] |
References EsysAssert, and m_data.
DataReady_ptr escript::Data::getReadyPtr | ( | ) | [inline, private] |
const_DataReady_ptr escript::Data::getReadyPtr | ( | ) | const [inline, private] |
References EsysAssert, and m_data.
void escript::Data::updateShareStatus | ( | bool | nowshared | ) | const [inline, private] |
Update the Data's shared flag This indicates that the DataAbstract used by this object is now shared (or no longer shared). For internal use only.
References m_shared.
bool escript::Data::isShared | ( | ) | const [inline, private] |
void escript::Data::forceResolve | ( | ) | [inline, private] |
References isLazy(), and resolve().
Referenced by exclusiveWrite(), getDataAtOffsetRO(), getDataPointRO(), getValueOfDataPointAsTuple(), getValueOfGlobalDataPointAsTuple(), setSlice(), setTaggedValue(), setTaggedValueByName(), setTaggedValueFromCPP(), setValueOfDataPoint(), and setValueOfDataPointToArray().
void escript::Data::exclusiveWrite | ( | ) | [inline, private] |
if another object is sharing out member data make a copy to work with instead. This code should only be called from single threaded sections of code.
References forceResolve(), isShared(), m_data, and set_m_data().
Referenced by copyWithMask(), operator*=(), operator+=(), operator-=(), operator/=(), requireWrite(), setItemD(), setSlice(), setTaggedValue(), setTaggedValueByName(), setTaggedValueFromCPP(), and setToZero().
void escript::Data::checkExclusiveWrite | ( | ) | [inline, private] |
checks if caller can have exclusive write to the object
References isLazy(), and isShared().
Referenced by getDataAtOffsetRW(), and getDataPointRW().
void Data::set_m_data | ( | DataAbstract_ptr | p | ) | [private] |
Modify the data abstract hosted by this Data object For internal use only. Passing a pointer to null is permitted (do this in the destructor).
References m_data, m_lazy, and m_shared.
Referenced by binaryOp(), copy(), Data(), delaySelf(), exclusiveWrite(), expand(), initialise(), operator=(), resolve(), setToZero(), tag(), and ~Data().
friend class DataAbstract [friend] |
bool escript::Data::m_protected [private] |
Referenced by Data(), isProtected(), operator=(), and setProtection().
bool escript::Data::m_shared [mutable, private] |
Referenced by isShared(), set_m_data(), and updateShareStatus().
bool escript::Data::m_lazy [private] |
Referenced by isLazy(), and set_m_data().
DataAbstract_ptr escript::Data::m_data [private] |
Referenced by actsExpanded(), algorithm(), binaryOp(), borrowData(), borrowDataPtr(), borrowReadyPtr(), copy(), copySelf(), copyWithMask(), Data(), delay(), delaySelf(), dp_algorithm(), dump(), eigenvalues(), eigenvalues_and_eigenvectors(), exclusiveWrite(), expand(), getDataOffset(), getDataPointRank(), getDataPointShape(), getDataPointSize(), getFunctionSpace(), getLength(), getNoValues(), getNumDataPointsPerSample(), getNumSamples(), getReady(), getReadyPtr(), getSampleBufferSize(), getSampleDataByTag(), getSampleDataRO(), isConstant(), isEmpty(), isExpanded(), isReady(), isTagged(), nonsymmetric(), operandCheck(), operator=(), resolve(), set_m_data(), setSlice(), setTaggedValue(), setTaggedValueFromCPP(), setToZero(), setValueOfDataPoint(), setValueOfDataPointToArray(), swapaxes(), symmetric(), tag(), toString(), trace(), and transpose().