escript Revision_
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
escript::Data Class Reference

Data represents a collection of datapoints. More...

#include <Data.h>

Public Member Functions

 Data ()
 Default constructor. Creates a DataEmpty object. More...
 
 Data (const Data &inData)
 Copy constructor. WARNING: Only performs a shallow copy. More...
 
 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. More...
 
 Data (const DataTypes::RealVectorType &value, const DataTypes::ShapeType &shape, const FunctionSpace &what, bool expanded)
 Copy Data from an existing vector. More...
 
 Data (DataTypes::real_t value, const DataTypes::ShapeType &dataPointShape, const FunctionSpace &what, bool expanded)
 Constructor which creates a Data with points having the specified shape. More...
 
 Data (DataTypes::cplx_t value, const DataTypes::ShapeType &dataPointShape, const FunctionSpace &what, bool expanded)
 Constructor which creates a Data with points having the specified shape. More...
 
 Data (const Data &inData, const DataTypes::RegionType &region)
 Constructor which performs a deep copy of a region from another Data object. More...
 
 Data (const WrappedArray &w, const FunctionSpace &what, bool expanded)
 Constructor which copies data from a wrapped array. More...
 
 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. More...
 
 Data (boost::python::object value, boost::python::object par1=boost::python::object(), boost::python::object par2=boost::python::object(), boost::python::object par3=boost::python::object())
 
 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. More...
 
 Data (DataAbstract_ptr underlyingdata)
 Create a Data based on the supplied DataAbstract. More...
 
 ~Data ()
 Destructor. More...
 
void copy (const Data &other)
 Make this object a deep copy of "other". More...
 
Data copySelf () const
 Return a pointer to a deep copy of this object. More...
 
Data delay ()
 produce a delayed evaluation version of this Data. More...
 
void delaySelf ()
 convert the current data into lazy data. More...
 
void setProtection ()
 switches on update protection More...
 
bool isProtected () const
 Returns true, if the data object is protected against update. More...
 
const boost::python::object getValueOfDataPointAsTuple (int dataPointNo)
 Return the value of a data point as a python tuple. More...
 
void setValueOfDataPointToPyObject (int dataPointNo, const boost::python::object &py_object)
 sets the values of a data-point from a python object on this process More...
 
void setValueOfDataPointToArray (int dataPointNo, const boost::python::object &)
 sets the values of a data-point from a array-like object on this process More...
 
void setValueOfDataPoint (int dataPointNo, const DataTypes::real_t)
 sets the values of a data-point on this process More...
 
void setValueOfDataPointC (int dataPointNo, const DataTypes::cplx_t)
 
const boost::python::object getValueOfGlobalDataPointAsTuple (int procNo, int dataPointNo)
 Return a data point across all processors as a python tuple. More...
 
void setTupleForGlobalDataPoint (int id, int proc, boost::python::object)
 Set the value of a global data point. More...
 
int getTagNumber (int dpno)
 Return the tag number associated with the given data-point. More...
 
std::string toString () const
 Write the data as a string. For large amounts of data, a summary is printed. More...
 
void expand ()
 Whatever the current Data type make this into a DataExpanded. More...
 
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. More...
 
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. More...
 
bool hasNaN ()
 returns return true if data contains NaN. More...
 
void replaceNaN (DataTypes::real_t value)
 replaces all NaN values with value More...
 
void replaceNaN (DataTypes::cplx_t value)
 replaces all NaN values with value More...
 
void replaceNaNPython (boost::python::object obj)
 replaces all NaN values with value More...
 
bool hasInf ()
 
void replaceInf (DataTypes::real_t value)
 
void replaceInf (DataTypes::cplx_t value)
 
void replaceInfPython (boost::python::object obj)
 
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. More...
 
bool isExpanded () const
 Return true if this Data is expanded. More...
 
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...
 
bool isTagged () const
 Return true if this Data is tagged. More...
 
bool isConstant () const
 Return true if this Data is constant. More...
 
bool isLazy () const
 Return true if this Data is lazy. More...
 
bool isReady () const
 Return true if this data is ready. More...
 
bool isEmpty () const
 
bool isComplex () const
 True if components of this data are stored as complex. More...
 
const FunctionSpacegetFunctionSpace () const
 Return the function space. More...
 
escript::Data getXFromFunctionSpace () const
 Returns the spatial locations of the data points. More...
 
const_Domain_ptr getDomain () const
 Return the domain. More...
 
Domain_ptr getDomainPython () const
 Return the domain. TODO: For internal use only. This should be removed. More...
 
unsigned int getDataPointRank () const
 Return the rank of the point data. More...
 
int getNumDataPoints () const
 Return the number of data points. More...
 
int getNumSamples () const
 Return the number of samples. More...
 
int getNumDataPointsPerSample () const
 Return the number of data points per sample. More...
 
bool numSamplesEqual (int numDataPointsPerSample, int numSamples) const
 Returns true if the number of data points per sample and the number of samples match the respective argument. DataEmpty always returns true. More...
 
bool isDataPointShapeEqual (int rank, const int *dimensions) const
 Returns true if the shape matches the vector (dimensions[0],..., dimensions[rank-1]). DataEmpty always returns true. More...
 
int getNoValues () const
 Return the number of values in the shape for this object. More...
 
void dump (const std::string fileName) const
 dumps the object into a netCDF file More...
 
const boost::python::object toListOfTuples (bool scalarastuple=true)
 returns the values of the object as a list of tuples (one for each datapoint). More...
 
const DataTypes::real_tgetSampleDataRO (DataTypes::RealVectorType::size_type sampleNo, DataTypes::real_t dummy=0) const
 Return the sample data for the given sample no. Please do not use this unless you NEED to access samples individually. More...
 
const DataTypes::cplx_tgetSampleDataRO (DataTypes::CplxVectorType::size_type sampleNo, DataTypes::cplx_t dummy) const
 
DataTypes::real_tgetSampleDataRW (DataTypes::RealVectorType::size_type sampleNo, DataTypes::real_t dummy=0)
 Return the sample data for the given sample no. Please do not use this unless you NEED to access samples individually. More...
 
DataTypes::cplx_tgetSampleDataRW (DataTypes::RealVectorType::size_type sampleNo, DataTypes::cplx_t dummy)
 
const DataTypes::real_tgetDataRO (DataTypes::real_t dummy=0) const
 Return a pointer to the beginning of the underlying data. More...
 
const DataTypes::cplx_tgetDataRO (DataTypes::cplx_t dummy) const
 
DataTypes::real_tgetSampleDataByTag (int tag, DataTypes::real_t dummy=0)
 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. More...
 
DataTypes::cplx_tgetSampleDataByTag (int tag, DataTypes::cplx_t dummy)
 
DataTypes::RealVectorType::const_reference getDataPointRO (int sampleNo, int dataPointNo)
 Return a reference into the DataVector which points to the specified data point. More...
 
DataTypes::RealVectorType::reference getDataPointRW (int sampleNo, int dataPointNo)
 Return a reference into the DataVector which points to the specified data point. More...
 
DataTypes::RealVectorType::size_type getDataOffset (int sampleNo, int dataPointNo)
 Return the offset for the given sample and point within the sample. More...
 
const DataTypes::ShapeTypegetDataPointShape () const
 Return a reference to the data point shape. More...
 
const boost::python::tuple getShapeTuple () const
 Return the data point shape as a tuple of integers. More...
 
long getShapeProduct () const
 Returns the product of the data point shapes. More...
 
int getDataPointSize () const
 Return the size of the data point. It is the product of the data point shape dimensions. More...
 
DataTypes::RealVectorType::size_type getLength () const
 Return the number of doubles stored for this Data. More...
 
bool hasNoSamples () const
 Return true if this object contains no samples. This is not the same as isEmpty() More...
 
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. More...
 
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. More...
 
void setTaggedValueFromCPP (int tagKey, const DataTypes::ShapeType &pointshape, const DataTypes::RealVectorType &value, int dataOffset=0)
 Assign the given value to the tag. Implicitly converts this object to type DataTagged if it is constant. More...
 
void setTaggedValueFromCPP (int tagKey, const DataTypes::ShapeType &pointshape, const DataTypes::CplxVectorType &value, int dataOffset=0)
 
void copyWithMask (const Data &other, const Data &mask)
 Copy other Data object into this Data object where mask is positive. More...
 
void setToZero ()
 set all values to zero More...
 
Data interpolate (const FunctionSpace &functionspace) const
 Interpolates this onto the given functionspace and returns the result as a Data object. More...
 
Data interpolateFromTable3D (const WrappedArray &table, DataTypes::real_t Amin, DataTypes::real_t Astep, DataTypes::real_t undef, Data &B, DataTypes::real_t Bmin, DataTypes::real_t Bstep, Data &C, DataTypes::real_t Cmin, DataTypes::real_t Cstep, bool check_boundaries)
 
Data interpolateFromTable2D (const WrappedArray &table, DataTypes::real_t Amin, DataTypes::real_t Astep, DataTypes::real_t undef, Data &B, DataTypes::real_t Bmin, DataTypes::real_t Bstep, bool check_boundaries)
 
Data interpolateFromTable1D (const WrappedArray &table, DataTypes::real_t Amin, DataTypes::real_t Astep, DataTypes::real_t undef, bool check_boundaries)
 
Data interpolateFromTable3DP (boost::python::object table, DataTypes::real_t Amin, DataTypes::real_t Astep, Data &B, DataTypes::real_t Bmin, DataTypes::real_t Bstep, Data &C, DataTypes::real_t Cmin, DataTypes::real_t Cstep, DataTypes::real_t undef, bool check_boundaries)
 
Data interpolateFromTable2DP (boost::python::object table, DataTypes::real_t Amin, DataTypes::real_t Astep, Data &B, DataTypes::real_t Bmin, DataTypes::real_t Bstep, DataTypes::real_t undef, bool check_boundaries)
 
Data interpolateFromTable1DP (boost::python::object table, DataTypes::real_t Amin, DataTypes::real_t Astep, DataTypes::real_t undef, bool check_boundaries)
 
Data nonuniforminterp (boost::python::object in, boost::python::object out, bool check_boundaries)
 
Data nonuniformslope (boost::python::object in, boost::python::object out, bool check_boundaries)
 
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. More...
 
Data grad () const
 
boost::python::object integrateToTuple_const () const
 Calculate the integral over the function space domain as a python tuple. More...
 
boost::python::object integrateToTuple ()
 Calculate the integral over the function space domain as a python tuple. More...
 
Data oneOver () const
 Returns 1./ Data object. More...
 
Data wherePositive () const
 Return a Data with a 1 for +ive values and a 0 for 0 or -ive values. More...
 
Data whereNegative () const
 Return a Data with a 1 for -ive values and a 0 for +ive or 0 values. More...
 
Data whereNonNegative () const
 Return a Data with a 1 for +ive or 0 values and a 0 for -ive values. More...
 
Data whereNonPositive () const
 Return a Data with a 1 for -ive or 0 values and a 0 for +ive values. More...
 
Data whereZero (DataTypes::real_t tol=0.0) const
 Return a Data with a 1 for 0 values and a 0 for +ive or -ive values. More...
 
Data whereNonZero (DataTypes::real_t tol=0.0) const
 Return a Data with a 0 for 0 values and a 1 for +ive or -ive values. More...
 
DataTypes::real_t Lsup ()
 Return the maximum absolute value of this Data object. More...
 
DataTypes::real_t Lsup_const () const
 
DataTypes::real_t sup ()
 Return the maximum value of this Data object. More...
 
DataTypes::real_t sup_const () const
 
DataTypes::real_t inf ()
 Return the minimum value of this Data object. More...
 
DataTypes::real_t inf_const () const
 
Data abs () const
 Return the absolute value of each data point of this Data object. More...
 
Data phase () const
 Return the phase/arg/angular-part of complex values. More...
 
Data maxval () const
 Return the maximum value of each data point of this Data object. More...
 
Data minval () const
 Return the minimum value of each data point of this Data object. More...
 
const boost::python::tuple minGlobalDataPoint () const
 
const boost::python::tuple maxGlobalDataPoint () const
 
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. More...
 
Data symmetric () const
 Return the symmetric part of a matrix which is half the matrix plus its transpose. More...
 
Data antisymmetric () const
 Return the antisymmetric part of a matrix which is half the matrix minus its transpose. More...
 
Data hermitian () const
 Return the hermitian part of a matrix which is half the matrix plus its adjoint. More...
 
Data antihermitian () const
 Return the anti-hermitian part of a matrix which is half the matrix minus its hermitian. More...
 
Data trace (int axis_offset) const
 Return the trace of a matrix. More...
 
Data transpose (int axis_offset) const
 Transpose each data point of this Data object around the given axis. More...
 
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. More...
 
const boost::python::tuple eigenvalues_and_eigenvectors (const DataTypes::real_t 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. More...
 
Data swapaxes (const int axis0, const int axis1) const
 swaps the components axis0 and axis1 More...
 
Data erf () const
 Return the error function erf of each data point of this Data object. More...
 
Data conjugate () const
 For complex values return the conjugate values. For non-complex data return a copy. More...
 
Data real () const
 
Data imag () const
 
Data sin () const
 Return the sin of each data point of this Data object. More...
 
Data cos () const
 Return the cos of each data point of this Data object. More...
 
Data bessel (int order, DataTypes::real_t(*besselfunc)(int, DataTypes::real_t))
 Bessel worker function. More...
 
Data besselFirstKind (int order)
 Return the Bessel function of the first kind for each data point of this Data object. More...
 
Data besselSecondKind (int order)
 Return the Bessel function of the second kind for each data point of this Data object. More...
 
Data tan () const
 Return the tan of each data point of this Data object. More...
 
Data asin () const
 Return the asin of each data point of this Data object. More...
 
Data acos () const
 Return the acos of each data point of this Data object. More...
 
Data atan () const
 Return the atan of each data point of this Data object. More...
 
Data sinh () const
 Return the sinh of each data point of this Data object. More...
 
Data cosh () const
 Return the cosh of each data point of this Data object. More...
 
Data tanh () const
 Return the tanh of each data point of this Data object. More...
 
Data asinh () const
 Return the asinh of each data point of this Data object. More...
 
Data acosh () const
 Return the acosh of each data point of this Data object. More...
 
Data atanh () const
 Return the atanh of each data point of this Data object. More...
 
Data log10 () const
 Return the log to base 10 of each data point of this Data object. More...
 
Data log () const
 Return the natural log of each data point of this Data object. More...
 
Data exp () const
 Return the exponential function of each data point of this Data object. More...
 
Data sqrt () const
 Return the square root of each data point of this Data object. More...
 
Data neg () const
 Return the negation of each data point of this Data object. More...
 
Data pos () const
 Return the identity of each data point of this Data object. Simply returns this object unmodified. More...
 
Data powD (const Data &right) const
 Return the given power of each data point of this Data object. More...
 
Data powO (const boost::python::object &right) const
 Return the given power of each data point of this boost python object. More...
 
Data rpowO (const boost::python::object &left) const
 Return the given power of each data point of this boost python object. More...
 
Dataoperator+= (const Data &right)
 Overloaded operator +=. More...
 
Dataoperator+= (const boost::python::object &right)
 
Dataoperator= (const Data &other)
 
Dataoperator-= (const Data &right)
 Overloaded operator -=. More...
 
Dataoperator-= (const boost::python::object &right)
 
Dataoperator*= (const Data &right)
 Overloaded operator *=. More...
 
Dataoperator*= (const boost::python::object &right)
 
Dataoperator/= (const Data &right)
 Overloaded operator /=. More...
 
Dataoperator/= (const boost::python::object &right)
 
Data truedivD (const Data &right)
 Newer style division operator for python. More...
 
Data truedivO (const boost::python::object &right)
 Newer style division operator for python. More...
 
Data rtruedivO (const boost::python::object &left)
 Newer style division operator for python. More...
 
boost::python::object __add__ (const boost::python::object &right)
 wrapper for python add operation More...
 
boost::python::object __sub__ (const boost::python::object &right)
 wrapper for python subtract operation More...
 
boost::python::object __rsub__ (const boost::python::object &right)
 wrapper for python reverse subtract operation More...
 
boost::python::object __mul__ (const boost::python::object &right)
 wrapper for python multiply operation More...
 
boost::python::object __div__ (const boost::python::object &right)
 wrapper for python divide operation More...
 
boost::python::object __rdiv__ (const boost::python::object &right)
 wrapper for python reverse divide operation More...
 
Data matrixInverse () const
 return inverse of matricies. More...
 
bool probeInterpolation (const FunctionSpace &functionspace) const
 Returns true if this can be interpolated to functionspace. More...
 
Data getItem (const boost::python::object &key) const
 Returns a slice from this Data object. More...
 
void setItemD (const boost::python::object &key, const Data &value)
 Copies slice from value into this Data object. More...
 
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. More...
 
Data getSlice (const DataTypes::RegionType &region) const
 Return a Data object containing the specified slice of this Data object. More...
 
void setSlice (const Data &value, const DataTypes::RegionType &region)
 Copy the specified slice from the given value into this Data object. More...
 
void print (void)
 print the data values to stdout. Used for debugging More...
 
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 More...
 
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 More...
 
MPI_Comm get_MPIComm (void) const
 return the MPI rank number of the local data MPI_COMM_WORLD is assumed and returned. More...
 
DataAbstractborrowData (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. More...
 
DataAbstract_ptr borrowDataPtr (void) const
 
DataReady_ptr borrowReadyPtr (void) const
 
DataTypes::RealVectorType::const_reference getDataAtOffsetRO (DataTypes::RealVectorType::size_type i, DataTypes::real_t dummy)
 Return a pointer to the beginning of the datapoint at the specified offset. TODO Eventually these should be inlined. More...
 
DataTypes::RealVectorType::reference getDataAtOffsetRW (DataTypes::RealVectorType::size_type i, DataTypes::real_t dummy)
 
DataTypes::CplxVectorType::const_reference getDataAtOffsetRO (DataTypes::CplxVectorType::size_type i, DataTypes::cplx_t dummy)
 
DataTypes::CplxVectorType::reference getDataAtOffsetRW (DataTypes::CplxVectorType::size_type i, DataTypes::cplx_t dummy)
 
DataTypes::RealVectorTypegetExpandedVectorReference (DataTypes::real_t dummy=0)
 Ensures that the Data is expanded and returns its underlying vector Does not check for exclusive write so do that before calling if sharing Is a posibility. More...
 
DataTypes::CplxVectorTypegetExpandedVectorReference (DataTypes::cplx_t dummy)
 
size_t getNumberOfTaggedValues () const
 For tagged Data returns the number of tags with values. For non-tagged data will return 0 (even Data which has been expanded from tagged). More...
 
void complicate ()
 
template<typename Scalar >
bp::object integrateWorker () const
 
template<class BinaryOp >
real_t lazyAlgWorker (real_t init)
 

Private Member Functions

void init_from_data_and_fs (const Data &inData, const FunctionSpace &functionspace)
 
template<typename S >
void maskWorker (Data &other2, Data &mask2, S sentinel)
 
template<class BinaryOp >
DataTypes::real_t lazyAlgWorker (DataTypes::real_t init)
 
DataTypes::real_t LsupWorker () const
 
DataTypes::real_t supWorker () const
 
DataTypes::real_t infWorker () const
 
template<typename Scalar >
boost::python::object integrateWorker () const
 
void calc_minGlobalDataPoint (int &ProcNo, int &DataPointNo) const
 
void calc_maxGlobalDataPoint (int &ProcNo, int &DataPointNo) const
 
Data minval_nonlazy () const
 
Data maxval_nonlazy () const
 
void operandCheck (const Data &right) const
 Check *this and the right operand are compatible. Throws an exception if they aren't. More...
 
template<class BinaryFunction >
DataTypes::real_t reduction (BinaryFunction operation, DataTypes::real_t 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. More...
 
template<class BinaryFunction >
Data dp_algorithm (BinaryFunction operation, DataTypes::real_t 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. More...
 
void typeMatchLeft (Data &right) const
 Convert the data type of the RHS to match this. More...
 
void typeMatchRight (const Data &right)
 Convert the data type of this to match the RHS. More...
 
void initialise (const DataTypes::RealVectorType &value, const DataTypes::ShapeType &shape, const FunctionSpace &what, bool expanded)
 Construct a Data object of the appropriate type. More...
 
void initialise (const DataTypes::CplxVectorType &value, const DataTypes::ShapeType &shape, const FunctionSpace &what, bool expanded)
 
void initialise (const WrappedArray &value, const FunctionSpace &what, bool expanded)
 
void initialise (const DataTypes::real_t value, const DataTypes::ShapeType &shape, const FunctionSpace &what, bool expanded)
 
void initialise (const DataTypes::cplx_t value, const DataTypes::ShapeType &shape, const FunctionSpace &what, bool expanded)
 
const DataReadygetReady () const
 
DataReadygetReady ()
 
DataReady_ptr getReadyPtr ()
 
const_DataReady_ptr getReadyPtr () const
 
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. More...
 
void checkExclusiveWrite ()
 checks if caller can have exclusive write to the object More...
 
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) More...
 
void TensorSelfUpdateBinaryOperation (const Data &right, escript::ES_optype operation)
 

Private Attributes

bool m_protected
 
bool m_lazy
 
DataAbstract_ptr m_data
 

Friends

class DataAbstract
 
class TestDomain
 
template<typename S >
Data condEvalWorker (escript::Data &mask, escript::Data &trueval, escript::Data &falseval, S sentinel)
 
Data randomData (const boost::python::tuple &shape, const FunctionSpace &what, long seed, const boost::python::tuple &filter)
 Create a new Expanded Data object filled with pseudo-random data. More...
 

Detailed Description

Data represents a collection of datapoints.

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.

Constructor & Destructor Documentation

◆ Data() [1/12]

Data::Data ( )

Default constructor. Creates a DataEmpty object.

Constructors.

Referenced by __add__(), dp_algorithm(), and getSlice().

◆ Data() [2/12]

Data::Data ( const Data inData)

Copy constructor. WARNING: Only performs a shallow copy.

◆ Data() [3/12]

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.

◆ Data() [4/12]

Data::Data ( const DataTypes::RealVectorType value,
const DataTypes::ShapeType shape,
const FunctionSpace what,
bool  expanded 
)

Copy Data from an existing vector.

◆ Data() [5/12]

Data::Data ( DataTypes::real_t  value,
const DataTypes::ShapeType dataPointShape,
const FunctionSpace what,
bool  expanded 
)

Constructor which creates a Data with points having the specified shape.

Parameters
value- Input - Single real 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.

◆ Data() [6/12]

Data::Data ( DataTypes::cplx_t  value,
const DataTypes::ShapeType dataPointShape,
const FunctionSpace what,
bool  expanded 
)
explicit

Constructor which creates a Data with points having the specified shape.

Parameters
value- Input - Single complex 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.

◆ Data() [7/12]

Data::Data ( const Data inData,
const DataTypes::RegionType region 
)

Constructor which performs a deep copy of a region from another Data object.

Parameters
inData- Input - Input Data object.
region- Input - Region to copy.

◆ Data() [8/12]

Data::Data ( const WrappedArray w,
const FunctionSpace what,
bool  expanded 
)

Constructor which copies data from a wrapped array.

Parameters
w- 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.

References initialise().

◆ Data() [9/12]

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.

Parameters
value- Input - Input data.
other- Input - contains all other parameters.

◆ Data() [10/12]

Data::Data ( boost::python::object  value,
boost::python::object  par1 = boost::python::object(),
boost::python::object  par2 = boost::python::object(),
boost::python::object  par3 = boost::python::object() 
)

This constructor subsumes a number of previous python ones.

Data(const boost::python::object& value, const FunctionSpace& what=FunctionSpace(), bool expanded=false);

Data(DataTypes::real_t value, const boost::python::tuple& shape=boost::python::make_tuple(), const FunctionSpace& what=FunctionSpace(), bool expanded=false);

and a new

Data(cplx_t value, const boost::python::tuple& shape=boost::python::make_tuple(), const FunctionSpace& what=FunctionSpace(), bool expanded=false);

◆ Data() [11/12]

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.

◆ Data() [12/12]

Data::Data ( DataAbstract_ptr  underlyingdata)
explicit

Create a Data based on the supplied DataAbstract.

◆ ~Data()

Data::~Data ( )

Destructor.

Member Function Documentation

◆ __add__()

bp::object Data::__add__ ( const boost::python::object &  right)

wrapper for python add operation

References Data(), and getFunctionSpace().

Referenced by BOOST_PYTHON_MODULE().

◆ __div__()

bp::object Data::__div__ ( const boost::python::object &  right)

wrapper for python divide operation

Referenced by BOOST_PYTHON_MODULE().

◆ __mul__()

bp::object Data::__mul__ ( const boost::python::object &  right)

wrapper for python multiply operation

Referenced by BOOST_PYTHON_MODULE().

◆ __rdiv__()

bp::object Data::__rdiv__ ( const boost::python::object &  right)

wrapper for python reverse divide operation

Referenced by BOOST_PYTHON_MODULE().

◆ __rsub__()

bp::object Data::__rsub__ ( const boost::python::object &  right)

wrapper for python reverse subtract operation

Referenced by BOOST_PYTHON_MODULE().

◆ __sub__()

bp::object Data::__sub__ ( const boost::python::object &  right)

wrapper for python subtract operation

Referenced by BOOST_PYTHON_MODULE().

◆ abs()

Data Data::abs ( ) const

Return the absolute value of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ acos()

Data Data::acos ( ) const

Return the acos of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ acosh()

Data Data::acosh ( ) const

Return the acosh of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ actsExpanded()

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.

Referenced by dudley::Assemble_AverageElementData(), finley::Assemble_AverageElementData(), dudley::Assemble_CopyElementData(), finley::Assemble_CopyElementData(), dudley::Assemble_CopyNodalData(), finley::Assemble_CopyNodalData(), dudley::Assemble_getNormal(), finley::Assemble_getNormal(), dudley::Assemble_getSize(), finley::Assemble_getSize(), dudley::Assemble_gradient(), finley::Assemble_gradient(), finley::Assemble_integrate(), dudley::Assemble_integrate(), dudley::Assemble_interpolate(), finley::Assemble_interpolate(), dudley::Assemble_LumpedSystem(), finley::Assemble_LumpedSystem(), dudley::Assemble_NodeCoordinates(), finley::Assemble_NodeCoordinates(), finley::Assemble_PDE_Single_1D(), dudley::Assemble_PDE_Single_2D(), finley::Assemble_PDE_Single_2D(), dudley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_C(), finley::Assemble_PDE_System_1D(), dudley::Assemble_PDE_System_2D(), finley::Assemble_PDE_System_2D(), dudley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_C(), speckley::DefaultAssembler2D::assembleComplexPDESingle(), speckley::DefaultAssembler3D::assembleComplexPDESingle(), speckley::DefaultAssembler2D::assembleComplexPDESystem(), speckley::DefaultAssembler3D::assembleComplexPDESystem(), ripley::Brick::assembleIntegrateImpl(), ripley::Rectangle::assembleIntegrateImpl(), speckley::Brick::assembleIntegrateWorker(), speckley::Rectangle::assembleIntegrateWorker(), dudley::AssembleParameters::AssembleParameters(), finley::AssembleParameters::AssembleParameters(), speckley::SpeckleyDomain::assemblePDE(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySingle(), ripley::LameAssembler2D::assemblePDEBoundarySystem(), ripley::LameAssembler3D::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDESingle(), speckley::DefaultAssembler2D::assemblePDESingle(), speckley::DefaultAssembler3D::assemblePDESingle(), ripley::LameAssembler2D::assemblePDESystem(), ripley::LameAssembler3D::assemblePDESystem(), ripley::WaveAssembler2D::assemblePDESystem(), ripley::WaveAssembler3D::assemblePDESystem(), speckley::WaveAssembler2D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystem(), speckley::DefaultAssembler2D::assemblePDESystem(), speckley::DefaultAssembler3D::assemblePDESystem(), speckley::WaveAssembler3D::assemblePDESystem(), speckley::Brick::gradient_order10(), speckley::Rectangle::gradient_order10(), speckley::Brick::gradient_order2(), speckley::Rectangle::gradient_order2(), speckley::Brick::gradient_order3(), speckley::Rectangle::gradient_order3(), speckley::Brick::gradient_order4(), speckley::Rectangle::gradient_order4(), speckley::Brick::gradient_order5(), speckley::Rectangle::gradient_order5(), speckley::Brick::gradient_order6(), speckley::Rectangle::gradient_order6(), speckley::Brick::gradient_order7(), speckley::Rectangle::gradient_order7(), speckley::Brick::gradient_order8(), speckley::Rectangle::gradient_order8(), speckley::Brick::gradient_order9(), speckley::Rectangle::gradient_order9(), weipa::DataVar::initFromEscript(), ripley::RipleyDomain::interpolateOnDomain(), escript::saveDataCSV(), finley::ElementFile::setTags(), and dudley::ElementFile::setTags().

◆ antihermitian()

Data Data::antihermitian ( ) const

Return the anti-hermitian part of a matrix which is half the matrix minus its hermitian.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ antisymmetric()

Data Data::antisymmetric ( ) const

Return the antisymmetric part of a matrix which is half the matrix minus its transpose.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ asin()

Data Data::asin ( ) const

Return the asin of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ asinh()

Data Data::asinh ( ) const

Return the asinh of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ atan()

Data Data::atan ( ) const

Return the atan of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ atanh()

Data Data::atanh ( ) const

Return the atanh of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ bessel()

Data Data::bessel ( int  order,
DataTypes::real_t(*)(int, DataTypes::real_t besselfunc 
)

Bessel worker function.

◆ besselFirstKind()

Data Data::besselFirstKind ( int  order)

Return the Bessel function of the first kind for each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE().

◆ besselSecondKind()

Data Data::besselSecondKind ( int  order)

Return the Bessel function of the second kind for each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE().

◆ borrowData()

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.

Referenced by escript::load(), and escript::resolveGroup().

◆ borrowDataPtr()

DataAbstract_ptr Data::borrowDataPtr ( void  ) const

◆ borrowReadyPtr()

DataReady_ptr Data::borrowReadyPtr ( void  ) const

◆ calc_maxGlobalDataPoint()

void Data::calc_maxGlobalDataPoint ( int &  ProcNo,
int &  DataPointNo 
) const
private

◆ calc_minGlobalDataPoint()

void Data::calc_minGlobalDataPoint ( int &  ProcNo,
int &  DataPointNo 
) const
private

◆ checkExclusiveWrite()

void escript::Data::checkExclusiveWrite ( )
inlineprivate

checks if caller can have exclusive write to the object

Referenced by getDataAtOffsetRW().

◆ complicate()

void Data::complicate ( )

◆ conjugate()

Data Data::conjugate ( ) const

For complex values return the conjugate values. For non-complex data return a copy.

Referenced by BOOST_PYTHON_MODULE().

◆ copy()

void Data::copy ( const Data other)

Make this object a deep copy of "other".

Referenced by BOOST_PYTHON_MODULE(), escript::DataLazy::collapseToReady(), and escript::MPIDataReducer::copyValueFrom().

◆ copySelf()

Data Data::copySelf ( ) const

Return a pointer to a deep copy of this object.

References m_data.

Referenced by BOOST_PYTHON_MODULE().

◆ copyWithMask()

void Data::copyWithMask ( const Data other,
const Data mask 
)

Copy other Data object into this Data object where mask is positive.

Referenced by BOOST_PYTHON_MODULE(), and paso::TransportProblem::copyConstraint().

◆ cos()

Data Data::cos ( ) const

Return the cos of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ cosh()

Data Data::cosh ( ) const

Return the cosh of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ delay()

Data Data::delay ( )

produce a delayed evaluation version of this Data.

Referenced by BOOST_PYTHON_MODULE().

◆ delaySelf()

void Data::delaySelf ( )

convert the current data into lazy data.

◆ dp_algorithm()

template<class BinaryFunction >
Data escript::Data::dp_algorithm ( BinaryFunction  operation,
DataTypes::real_t  initial_value 
) const
inlineprivate

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(), ESYS_ASSERT, escript::DataTagged::getDataByTagRW(), escript::DataTagged::getDefaultOffset(), getFunctionSpace(), escript::DataAbstract::getNumDPPSample(), escript::DataAbstract::getNumSamples(), escript::DataTagged::getOffsetForTag(), escript::DataExpanded::getPointOffset(), escript::DataAbstract::getShape(), escript::DataTagged::getTagLookup(), escript::DataConstant::getTypedVectorRO(), escript::DataExpanded::getTypedVectorRO(), escript::DataTagged::getTypedVectorRO(), escript::DataConstant::getTypedVectorRW(), escript::DataExpanded::getTypedVectorRW(), escript::DataTagged::getTypedVectorRW(), isConstant(), isEmpty(), isExpanded(), isLazy(), isTagged(), m_data, escript::reductionOpVector(), and escript::DataTypes::scalarShape.

Referenced by minval_nonlazy().

◆ dump()

void Data::dump ( const std::string  fileName) const

dumps the object into a netCDF file

Referenced by BOOST_PYTHON_MODULE().

◆ eigenvalues()

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.

Referenced by BOOST_PYTHON_MODULE().

◆ eigenvalues_and_eigenvectors()

const bp::tuple Data::eigenvalues_and_eigenvectors ( const DataTypes::real_t  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.

Referenced by BOOST_PYTHON_MODULE().

◆ erf()

Data Data::erf ( ) const

Return the error function erf of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ exclusiveWrite()

void escript::Data::exclusiveWrite ( )
inlineprivate

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 escript::DataAbstract::deepCopy().

Referenced by setTaggedValueByName().

◆ exp()

Data Data::exp ( ) const

Return the exponential function of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ expand()

void Data::expand ( )

◆ forceResolve()

void escript::Data::forceResolve ( )
inlineprivate

◆ get_MPIComm()

MPI_Comm Data::get_MPIComm ( void  ) const

return the MPI rank number of the local data MPI_COMM_WORLD is assumed and returned.

Referenced by getValueOfGlobalDataPointAsTuple(), and matrixInverse().

◆ get_MPIRank()

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

Referenced by getValueOfGlobalDataPointAsTuple().

◆ get_MPISize()

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

Referenced by toListOfTuples().

◆ getDataAtOffsetRO() [1/2]

◆ getDataAtOffsetRO() [2/2]

Return a pointer to the beginning of the datapoint at the specified offset. TODO Eventually these should be inlined.

Parameters
i- position(offset) in the underlying datastructure

Referenced by getValueOfGlobalDataPointAsTuple().

◆ getDataAtOffsetRW() [1/2]

◆ getDataAtOffsetRW() [2/2]

◆ getDataOffset()

DataTypes::RealVectorType::size_type escript::Data::getDataOffset ( int  sampleNo,
int  dataPointNo 
)
inline

Return the offset for the given sample and point within the sample.

Referenced by getValueOfGlobalDataPointAsTuple(), and escript::load().

◆ getDataPointRank()

unsigned int escript::Data::getDataPointRank ( ) const
inline

◆ getDataPointRO()

DataTypes::RealVectorType::const_reference Data::getDataPointRO ( int  sampleNo,
int  dataPointNo 
)

Return a reference into the DataVector which points to the specified data point.

Parameters
sampleNo- Input -
dataPointNo- Input -

◆ getDataPointRW()

DataTypes::RealVectorType::reference Data::getDataPointRW ( int  sampleNo,
int  dataPointNo 
)

Return a reference into the DataVector which points to the specified data point.

Parameters
sampleNo- Input -
dataPointNo- Input -

◆ getDataPointShape()

const DataTypes::ShapeType & escript::Data::getDataPointShape ( ) const
inline

◆ getDataPointSize()

int Data::getDataPointSize ( ) const

Return the size of the data point. It is the product of the data point shape dimensions.

Referenced by dudley::Assemble_AverageElementData(), finley::Assemble_AverageElementData(), dudley::Assemble_CopyElementData(), finley::Assemble_CopyElementData(), dudley::Assemble_CopyNodalData(), finley::Assemble_CopyNodalData(), dudley::Assemble_gradient(), finley::Assemble_gradient(), finley::Assemble_integrate(), dudley::Assemble_integrate(), dudley::Assemble_interpolate(), finley::Assemble_interpolate(), speckley::SpeckleyDomain::assembleComplexPDEDirac(), speckley::DefaultAssembler2D::assembleComplexPDESystem(), speckley::DefaultAssembler3D::assembleComplexPDESystem(), ripley::Brick::assembleGradientImpl(), ripley::Rectangle::assembleGradientImpl(), ripley::Brick::assembleIntegrateImpl(), ripley::Rectangle::assembleIntegrateImpl(), dudley::AssembleParameters::AssembleParameters(), finley::AssembleParameters::AssembleParameters(), ripley::RipleyDomain::assemblePDE(), speckley::SpeckleyDomain::assemblePDE(), ripley::RipleyDomain::assemblePDEBoundary(), speckley::SpeckleyDomain::assemblePDEBoundary(), ripley::LameAssembler2D::assemblePDEBoundarySystem(), ripley::LameAssembler3D::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::RipleyDomain::assemblePDEDirac(), speckley::SpeckleyDomain::assemblePDEDirac(), ripley::LameAssembler2D::assemblePDESystem(), ripley::LameAssembler3D::assemblePDESystem(), ripley::WaveAssembler2D::assemblePDESystem(), ripley::WaveAssembler3D::assemblePDESystem(), speckley::WaveAssembler2D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystem(), speckley::DefaultAssembler2D::assemblePDESystem(), speckley::DefaultAssembler3D::assemblePDESystem(), speckley::WaveAssembler3D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystemReduced(), ripley::RipleyDomain::averageData(), paso::TransportProblem::copyConstraint(), ripley::RipleyDomain::copyData(), speckley::SpeckleyDomain::copyData(), ripley::RipleyDomain::dofToNodes(), speckley::Brick::gradient_order10(), speckley::Rectangle::gradient_order10(), speckley::Brick::gradient_order2(), speckley::Rectangle::gradient_order2(), speckley::Brick::gradient_order3(), speckley::Rectangle::gradient_order3(), speckley::Brick::gradient_order4(), speckley::Rectangle::gradient_order4(), speckley::Brick::gradient_order5(), speckley::Rectangle::gradient_order5(), speckley::Brick::gradient_order6(), speckley::Rectangle::gradient_order6(), speckley::Brick::gradient_order7(), speckley::Rectangle::gradient_order7(), speckley::Brick::gradient_order8(), speckley::Rectangle::gradient_order8(), speckley::Brick::gradient_order9(), speckley::Rectangle::gradient_order9(), escript::AbstractTransportProblem::insertConstraint(), speckley::Brick::integral_order10(), speckley::Rectangle::integral_order10(), speckley::Brick::integral_order2(), speckley::Rectangle::integral_order2(), speckley::Brick::integral_order3(), speckley::Rectangle::integral_order3(), speckley::Brick::integral_order4(), speckley::Rectangle::integral_order4(), speckley::Brick::integral_order5(), speckley::Rectangle::integral_order5(), speckley::Brick::integral_order6(), speckley::Rectangle::integral_order6(), speckley::Brick::integral_order7(), speckley::Rectangle::integral_order7(), speckley::Brick::integral_order8(), speckley::Rectangle::integral_order8(), speckley::Brick::integral_order9(), speckley::Rectangle::integral_order9(), speckley::RipleyCoupler::interpolate(), speckley::Brick::interpolateElementsOnNodes(), speckley::Rectangle::interpolateElementsOnNodesWorker(), ripley::MultiBrick::interpolateElementsToElementsCoarserWorker(), ripley::MultiRectangle::interpolateElementsToElementsCoarserWorker(), ripley::MultiBrick::interpolateElementsToElementsFinerWorker(), ripley::MultiRectangle::interpolateElementsToElementsFinerWorker(), speckley::Brick::interpolateFromCorners(), speckley::Rectangle::interpolateFromCorners(), speckley::Brick::interpolateNodesOnElementsWorker(), speckley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnElementsWorker(), ripley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnFacesWorker(), ripley::Rectangle::interpolateNodesOnFacesWorker(), ripley::MultiBrick::interpolateNodesToElementsFinerWorker(), ripley::MultiRectangle::interpolateNodesToElementsFinerWorker(), ripley::MultiBrick::interpolateNodesToNodesFinerWorker(), ripley::MultiRectangle::interpolateNodesToNodesFinerWorker(), ripley::RipleyDomain::interpolateOnDomain(), speckley::SpeckleyDomain::interpolateOnDomain(), ripley::MultiBrick::interpolateReducedToElementsFinerWorker(), ripley::MultiRectangle::interpolateReducedToElementsFinerWorker(), ripley::MultiBrick::interpolateReducedToReducedFinerWorker(), ripley::MultiRectangle::interpolateReducedToReducedFinerWorker(), ripley::RipleyDomain::multiplyData(), speckley::SpeckleyDomain::multiplyData(), ripley::Brick::nodesToDOF(), ripley::Rectangle::nodesToDOF(), paso::SystemMatrix< T >::nullifyRowsAndCols(), ripley::Brick::readBinaryGridImpl(), ripley::Rectangle::readBinaryGridImpl(), speckley::Brick::readBinaryGridImpl(), speckley::Rectangle::readBinaryGridImpl(), ripley::Brick::readNcGrid(), ripley::Rectangle::readNcGrid(), speckley::Brick::readNcGrid(), speckley::Rectangle::readNcGrid(), speckley::Brick::reduction_order10(), speckley::Rectangle::reduction_order10(), speckley::Brick::reduction_order2(), speckley::Rectangle::reduction_order2(), speckley::Brick::reduction_order3(), speckley::Rectangle::reduction_order3(), speckley::Brick::reduction_order4(), speckley::Rectangle::reduction_order4(), speckley::Brick::reduction_order5(), speckley::Rectangle::reduction_order5(), speckley::Brick::reduction_order6(), speckley::Rectangle::reduction_order6(), speckley::Brick::reduction_order7(), speckley::Rectangle::reduction_order7(), speckley::Brick::reduction_order8(), speckley::Rectangle::reduction_order8(), speckley::Brick::reduction_order9(), speckley::Rectangle::reduction_order9(), dudley::NodeFile::setCoordinates(), finley::NodeFile::setCoordinates(), finley::ElementFile::setTags(), dudley::ElementFile::setTags(), dudley::NodeFile::setTags(), finley::NodeFile::setTags(), paso::SystemMatrix< T >::setToSolution(), paso::TransportProblem::setToSolution(), escript::AbstractSystemMatrix::solve(), escript::AbstractTransportProblem::solve(), toListOfTuples(), speckley::RipleyCoupler::validInterpolation(), escript::AbstractSystemMatrix::vectorMultiply(), ripley::Brick::writeBinaryGridImpl(), ripley::Rectangle::writeBinaryGridImpl(), speckley::Brick::writeBinaryGridImpl(), speckley::Rectangle::writeBinaryGridImpl(), and paso::SystemMatrix< T >::ypAx().

◆ getDataRO() [1/2]

const DataTypes::cplx_t * escript::Data::getDataRO ( DataTypes::cplx_t  dummy) const
inline

◆ getDataRO() [2/2]

const DataTypes::real_t * escript::Data::getDataRO ( DataTypes::real_t  dummy = 0) const
inline

Return a pointer to the beginning of the underlying data.

Warning
please avoid using this method since it by-passes possible lazy improvements. May be removed without notice.
Returns
pointer to the data.

References getNumSamples(), getReady(), escript::DataReady::getTypedVectorRO(), and isLazy().

Referenced by escript::MPIDataReducer::groupSend(), weipa::DataVar::initFromEscript(), and escript::MPIDataReducer::sendTo().

◆ getDomain()

const_Domain_ptr escript::Data::getDomain ( ) const
inline

◆ getDomainPython()

Domain_ptr escript::Data::getDomainPython ( ) const
inline

Return the domain. TODO: For internal use only. This should be removed.

Referenced by BOOST_PYTHON_MODULE().

◆ getExpandedVectorReference() [1/2]

DataTypes::CplxVectorType & Data::getExpandedVectorReference ( DataTypes::cplx_t  dummy)

◆ getExpandedVectorReference() [2/2]

DataTypes::RealVectorType & Data::getExpandedVectorReference ( DataTypes::real_t  dummy = 0)

Ensures that the Data is expanded and returns its underlying vector Does not check for exclusive write so do that before calling if sharing Is a posibility.

Warning
For domain implementors only. Using this function will avoid using optimisations like lazy evaluation. It is intended to allow quick initialisation of Data by domain; not as a bypass around escript's other mechanisms.

Referenced by dudley::Assemble_LumpedSystem(), paso::TransportProblem::copyConstraint(), escript::MPIDataReducer::groupSend(), paso::SystemMatrix< T >::nullifyRowsAndCols(), escript::TestDomain::randomFill(), dudley::DudleyDomain::randomFill(), finley::FinleyDomain::randomFill(), ripley::Rectangle::randomFillWorker(), escript::MPIDataReducer::reduceRemoteValues(), paso::SystemMatrix< T >::setToSolution(), paso::TransportProblem::setToSolution(), and paso::SystemMatrix< T >::ypAx().

◆ getFunctionSpace()

const FunctionSpace & escript::Data::getFunctionSpace ( ) const
inline

Return the function space.

Referenced by __add__(), dudley::Assemble_CopyNodalData(), finley::Assemble_CopyNodalData(), finley::Assemble_getNormal(), finley::Assemble_getSize(), dudley::Assemble_gradient(), finley::Assemble_gradient(), finley::Assemble_integrate(), dudley::Assemble_interpolate(), finley::Assemble_interpolate(), dudley::Assemble_LumpedSystem(), finley::Assemble_LumpedSystem(), dudley::Assemble_NodeCoordinates(), finley::Assemble_NodeCoordinates(), dudley::Assemble_PDE(), finley::Assemble_PDE(), speckley::Brick::assembleGradient(), speckley::Rectangle::assembleGradient(), ripley::Brick::assembleGradientImpl(), ripley::Rectangle::assembleGradientImpl(), ripley::Brick::assembleIntegrateImpl(), ripley::Rectangle::assembleIntegrateImpl(), speckley::Brick::assembleIntegrateWorker(), speckley::Rectangle::assembleIntegrateWorker(), speckley::SpeckleyDomain::assemblePDE(), ripley::WaveAssembler2D::assemblePDESystem(), ripley::WaveAssembler3D::assemblePDESystem(), BOOST_PYTHON_MODULE(), paso::TransportProblem::copyConstraint(), dp_algorithm(), escript::MPIDataReducer::getCompatibilityInfo(), getXFromFunctionSpace(), dudley::hasReducedIntegrationOrder(), finley::util::hasReducedIntegrationOrder(), weipa::DataVar::initFromEscript(), ripley::MultiBrick::interpolateAcross(), ripley::MultiRectangle::interpolateAcross(), speckley::Brick::interpolateElementsOnNodes(), speckley::Rectangle::interpolateElementsOnNodesWorker(), dudley::DudleyDomain::interpolateOnDomain(), escript::NullDomain::interpolateOnDomain(), escript::TestDomain::interpolateOnDomain(), finley::FinleyDomain::interpolateOnDomain(), ripley::RipleyDomain::interpolateOnDomain(), speckley::SpeckleyDomain::interpolateOnDomain(), matrixInverse(), paso::SystemMatrix< T >::nullifyRowsAndCols(), escript::operator*(), escript::operator+(), escript::operator-(), escript::operator/(), speckley::Brick::randomFill(), ripley::Brick::readBinaryGridImpl(), ripley::Rectangle::readBinaryGridImpl(), speckley::Brick::readBinaryGridImpl(), speckley::Rectangle::readBinaryGridImpl(), ripley::Brick::readNcGrid(), ripley::Rectangle::readNcGrid(), speckley::Brick::readNcGrid(), speckley::Rectangle::readNcGrid(), escript::MPIDataReducer::reduceLocalValue(), escript::MPIDataReducer::reduceRemoteValues(), rtruedivO(), escript::saveDataCSV(), setItemO(), dudley::DudleyDomain::setNewX(), finley::FinleyDomain::setNewX(), setTaggedValueByName(), escript::FunctionSpace::setTags(), escript::FunctionSpace::setTagsByString(), dudley::DudleyDomain::setToGradient(), finley::FinleyDomain::setToGradient(), ripley::RipleyDomain::setToGradient(), speckley::SpeckleyDomain::setToGradient(), dudley::DudleyDomain::setToIntegralsWorker(), finley::FinleyDomain::setToIntegralsWorker(), ripley::RipleyDomain::setToIntegralsWorker(), speckley::SpeckleyDomain::setToIntegralsWorker(), dudley::DudleyDomain::setToNormal(), finley::FinleyDomain::setToNormal(), ripley::Brick::setToNormal(), ripley::MultiBrick::setToNormal(), ripley::Rectangle::setToNormal(), dudley::DudleyDomain::setToSize(), finley::FinleyDomain::setToSize(), ripley::Brick::setToSize(), ripley::MultiBrick::setToSize(), ripley::Rectangle::setToSize(), speckley::Brick::setToSize(), speckley::Rectangle::setToSize(), paso::SystemMatrix< T >::setToSolution(), paso::TransportProblem::setToSolution(), dudley::DudleyDomain::setToX(), finley::FinleyDomain::setToX(), ripley::RipleyDomain::setToX(), speckley::SpeckleyDomain::setToX(), setToZero(), escript::AbstractSystemMatrix::solve(), escript::AbstractTransportProblem::solve(), truedivO(), speckley::RipleyCoupler::validInterpolation(), ripley::WaveAssembler2D::WaveAssembler2D(), speckley::WaveAssembler2D::WaveAssembler2D(), ripley::WaveAssembler3D::WaveAssembler3D(), speckley::WaveAssembler3D::WaveAssembler3D(), ripley::Brick::writeBinaryGridImpl(), ripley::Rectangle::writeBinaryGridImpl(), speckley::Brick::writeBinaryGridImpl(), speckley::Rectangle::writeBinaryGridImpl(), and paso::SystemMatrix< T >::ypAx().

◆ getItem()

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.

Parameters
key- Input - python slice tuple specifying slice to return.

References getDataPointRank(), getDataPointShape(), getSlice(), and escript::DataTypes::getSliceRegion().

Referenced by BOOST_PYTHON_MODULE().

◆ getLength()

DataTypes::RealVectorType::size_type Data::getLength ( ) const

Return the number of doubles stored for this Data.

Referenced by escript::MPIDataReducer::groupSend(), and escript::MPIDataReducer::sendTo().

◆ getNoValues()

int escript::Data::getNoValues ( ) const
inline

Return the number of values in the shape for this object.

Referenced by setToZero().

◆ getNumberOfTaggedValues()

size_t Data::getNumberOfTaggedValues ( ) const

◆ getNumDataPoints()

int escript::Data::getNumDataPoints ( ) const
inline

◆ getNumDataPointsPerSample()

int escript::Data::getNumDataPointsPerSample ( ) const
inline

◆ getNumSamples()

int escript::Data::getNumSamples ( ) const
inline

◆ getReady() [1/2]

DataReady * escript::Data::getReady ( )
inlineprivate

References ESYS_ASSERT.

◆ getReady() [2/2]

const DataReady * escript::Data::getReady ( ) const
inlineprivate

◆ getReadyPtr() [1/2]

DataReady_ptr escript::Data::getReadyPtr ( )
inlineprivate

References ESYS_ASSERT.

◆ getReadyPtr() [2/2]

const_DataReady_ptr escript::Data::getReadyPtr ( ) const
inlineprivate

References ESYS_ASSERT.

◆ getSampleDataByTag() [1/2]

DataTypes::cplx_t * escript::Data::getSampleDataByTag ( int  tag,
DataTypes::cplx_t  dummy 
)
inline

◆ getSampleDataByTag() [2/2]

DataTypes::real_t * escript::Data::getSampleDataByTag ( int  tag,
DataTypes::real_t  dummy = 0 
)
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.

Parameters
tag- Input - the tag key.

◆ getSampleDataRO() [1/2]

const DataTypes::cplx_t * escript::Data::getSampleDataRO ( DataTypes::CplxVectorType::size_type  sampleNo,
DataTypes::cplx_t  dummy 
) const

◆ getSampleDataRO() [2/2]

const DataTypes::real_t * escript::Data::getSampleDataRO ( DataTypes::RealVectorType::size_type  sampleNo,
DataTypes::real_t  dummy = 0 
) const
inline

Return the sample data for the given sample no. Please do not use this unless you NEED to access samples individually.

Parameters
sampleNo- Input - the given sample no.
Returns
pointer to the sample data.

References getReady(), escript::DataReady::getSampleDataRO(), m_data, and escript::DataLazy::resolveSample().

Referenced by dudley::Assemble_AverageElementData(), finley::Assemble_AverageElementData(), dudley::Assemble_CopyElementData(), finley::Assemble_CopyElementData(), dudley::Assemble_CopyNodalData(), finley::Assemble_CopyNodalData(), dudley::Assemble_gradient(), finley::Assemble_gradient(), finley::Assemble_integrate(), dudley::Assemble_integrate(), dudley::Assemble_interpolate(), finley::Assemble_interpolate(), dudley::Assemble_LumpedSystem(), finley::Assemble_LumpedSystem(), dudley::Assemble_PDE_Points(), finley::Assemble_PDE_Points(), finley::Assemble_PDE_Single_1D(), dudley::Assemble_PDE_Single_2D(), finley::Assemble_PDE_Single_2D(), dudley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_C(), finley::Assemble_PDE_System_1D(), dudley::Assemble_PDE_System_2D(), finley::Assemble_PDE_System_2D(), dudley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_C(), speckley::SpeckleyDomain::assembleComplexPDEDirac(), speckley::DefaultAssembler2D::assembleComplexPDESingle(), speckley::DefaultAssembler3D::assembleComplexPDESingle(), speckley::DefaultAssembler2D::assembleComplexPDESystem(), speckley::DefaultAssembler3D::assembleComplexPDESystem(), ripley::Brick::assembleGradientImpl(), ripley::Rectangle::assembleGradientImpl(), ripley::Brick::assembleIntegrateImpl(), ripley::Rectangle::assembleIntegrateImpl(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySingle(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySingleReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySingleReduced(), ripley::LameAssembler2D::assemblePDEBoundarySystem(), ripley::LameAssembler3D::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::RipleyDomain::assemblePDEDirac(), speckley::SpeckleyDomain::assemblePDEDirac(), ripley::DefaultAssembler2D< Scalar >::assemblePDESingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDESingle(), speckley::DefaultAssembler2D::assemblePDESingle(), speckley::DefaultAssembler3D::assemblePDESingle(), ripley::DefaultAssembler2D< Scalar >::assemblePDESingleReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDESingleReduced(), ripley::LameAssembler2D::assemblePDESystem(), ripley::LameAssembler3D::assemblePDESystem(), ripley::WaveAssembler2D::assemblePDESystem(), ripley::WaveAssembler3D::assemblePDESystem(), speckley::WaveAssembler2D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystem(), speckley::DefaultAssembler2D::assemblePDESystem(), speckley::DefaultAssembler3D::assemblePDESystem(), speckley::WaveAssembler3D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystemReduced(), ripley::RipleyDomain::averageData(), speckley::RipleyCoupler::calculate(), ripley::RipleyDomain::copyData(), speckley::SpeckleyDomain::copyData(), ripley::RipleyDomain::dofToNodes(), speckley::Brick::gradient_order10(), speckley::Rectangle::gradient_order10(), speckley::Brick::gradient_order2(), speckley::Rectangle::gradient_order2(), speckley::Brick::gradient_order3(), speckley::Rectangle::gradient_order3(), speckley::Brick::gradient_order4(), speckley::Rectangle::gradient_order4(), speckley::Brick::gradient_order5(), speckley::Rectangle::gradient_order5(), speckley::Brick::gradient_order6(), speckley::Rectangle::gradient_order6(), speckley::Brick::gradient_order7(), speckley::Rectangle::gradient_order7(), speckley::Brick::gradient_order8(), speckley::Rectangle::gradient_order8(), speckley::Brick::gradient_order9(), speckley::Rectangle::gradient_order9(), weipa::DataVar::initFromEscript(), speckley::Brick::integral_order10(), speckley::Rectangle::integral_order10(), speckley::Brick::integral_order2(), speckley::Rectangle::integral_order2(), speckley::Brick::integral_order3(), speckley::Rectangle::integral_order3(), speckley::Brick::integral_order4(), speckley::Rectangle::integral_order4(), speckley::Brick::integral_order5(), speckley::Rectangle::integral_order5(), speckley::Brick::integral_order6(), speckley::Rectangle::integral_order6(), speckley::Brick::integral_order7(), speckley::Rectangle::integral_order7(), speckley::Brick::integral_order8(), speckley::Rectangle::integral_order8(), speckley::Brick::integral_order9(), speckley::Rectangle::integral_order9(), speckley::Brick::interpolateElementsOnNodes(), speckley::Rectangle::interpolateElementsOnNodesWorker(), ripley::MultiBrick::interpolateElementsToElementsCoarserWorker(), ripley::MultiRectangle::interpolateElementsToElementsCoarserWorker(), ripley::MultiBrick::interpolateElementsToElementsFinerWorker(), ripley::MultiRectangle::interpolateElementsToElementsFinerWorker(), speckley::Brick::interpolateFromCorners(), speckley::Rectangle::interpolateFromCorners(), speckley::Brick::interpolateNodesOnElementsWorker(), speckley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnElementsWorker(), ripley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnFacesWorker(), ripley::Rectangle::interpolateNodesOnFacesWorker(), ripley::MultiBrick::interpolateNodesToElementsFinerWorker(), ripley::MultiRectangle::interpolateNodesToElementsFinerWorker(), ripley::MultiBrick::interpolateNodesToNodesFinerWorker(), ripley::MultiRectangle::interpolateNodesToNodesFinerWorker(), ripley::RipleyDomain::interpolateOnDomain(), speckley::SpeckleyDomain::interpolateOnDomain(), ripley::MultiBrick::interpolateReducedToElementsFinerWorker(), ripley::MultiRectangle::interpolateReducedToElementsFinerWorker(), ripley::MultiBrick::interpolateReducedToReducedFinerWorker(), ripley::MultiRectangle::interpolateReducedToReducedFinerWorker(), ripley::RipleyDomain::multiplyData(), speckley::SpeckleyDomain::multiplyData(), ripley::Brick::nodesToDOF(), ripley::Rectangle::nodesToDOF(), speckley::Brick::reduction_order10(), speckley::Rectangle::reduction_order10(), speckley::Brick::reduction_order2(), speckley::Rectangle::reduction_order2(), speckley::Brick::reduction_order3(), speckley::Rectangle::reduction_order3(), speckley::Brick::reduction_order4(), speckley::Rectangle::reduction_order4(), speckley::Brick::reduction_order5(), speckley::Rectangle::reduction_order5(), speckley::Brick::reduction_order6(), speckley::Rectangle::reduction_order6(), speckley::Brick::reduction_order7(), speckley::Rectangle::reduction_order7(), speckley::Brick::reduction_order8(), speckley::Rectangle::reduction_order8(), speckley::Brick::reduction_order9(), speckley::Rectangle::reduction_order9(), escript::saveDataCSV(), dudley::NodeFile::setCoordinates(), finley::NodeFile::setCoordinates(), finley::ElementFile::setTags(), ripley::RipleyDomain::setTags(), speckley::SpeckleyDomain::setTags(), dudley::ElementFile::setTags(), dudley::NodeFile::setTags(), finley::NodeFile::setTags(), ripley::Brick::writeBinaryGridImpl(), ripley::Rectangle::writeBinaryGridImpl(), speckley::Brick::writeBinaryGridImpl(), and speckley::Rectangle::writeBinaryGridImpl().

◆ getSampleDataRW() [1/2]

DataTypes::cplx_t * escript::Data::getSampleDataRW ( DataTypes::RealVectorType::size_type  sampleNo,
DataTypes::cplx_t  dummy 
)

◆ getSampleDataRW() [2/2]

DataTypes::real_t * escript::Data::getSampleDataRW ( DataTypes::RealVectorType::size_type  sampleNo,
DataTypes::real_t  dummy = 0 
)
inline

Return the sample data for the given sample no. Please do not use this unless you NEED to access samples individually.

Parameters
sampleNo- Input - the given sample no.
Returns
pointer to the sample data.

References getReady(), escript::DataReady::getSampleDataRW(), and isLazy().

Referenced by ripley::Brick::addToMatrixAndRHS(), ripley::Rectangle::addToMatrixAndRHS(), dudley::Assemble_AverageElementData(), finley::Assemble_AverageElementData(), dudley::Assemble_CopyElementData(), finley::Assemble_CopyElementData(), dudley::Assemble_CopyNodalData(), finley::Assemble_CopyNodalData(), dudley::Assemble_getNormal(), finley::Assemble_getNormal(), dudley::Assemble_getSize(), finley::Assemble_getSize(), dudley::Assemble_gradient(), finley::Assemble_gradient(), dudley::Assemble_interpolate(), finley::Assemble_interpolate(), finley::Assemble_LumpedSystem(), dudley::Assemble_NodeCoordinates(), finley::Assemble_NodeCoordinates(), dudley::Assemble_PDE_Points(), finley::Assemble_PDE_Points(), finley::Assemble_PDE_Single_1D(), dudley::Assemble_PDE_Single_2D(), finley::Assemble_PDE_Single_2D(), dudley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_C(), finley::Assemble_PDE_System_1D(), dudley::Assemble_PDE_System_2D(), finley::Assemble_PDE_System_2D(), dudley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_C(), speckley::SpeckleyDomain::assembleComplexPDEDirac(), speckley::DefaultAssembler2D::assembleComplexPDESingle(), speckley::DefaultAssembler3D::assembleComplexPDESingle(), speckley::DefaultAssembler2D::assembleComplexPDESystem(), speckley::DefaultAssembler3D::assembleComplexPDESystem(), ripley::Brick::assembleCoordinates(), ripley::Rectangle::assembleCoordinates(), speckley::Brick::assembleCoordinates(), speckley::Rectangle::assembleCoordinates(), ripley::Brick::assembleGradientImpl(), ripley::Rectangle::assembleGradientImpl(), ripley::RipleyDomain::assemblePDEDirac(), speckley::SpeckleyDomain::assemblePDEDirac(), speckley::DefaultAssembler2D::assemblePDESingle(), speckley::DefaultAssembler3D::assemblePDESingle(), speckley::WaveAssembler2D::assemblePDESystem(), speckley::DefaultAssembler2D::assemblePDESystem(), speckley::DefaultAssembler3D::assemblePDESystem(), speckley::WaveAssembler3D::assemblePDESystem(), ripley::RipleyDomain::averageData(), paso::TransportProblem::copyConstraint(), ripley::RipleyDomain::copyData(), speckley::SpeckleyDomain::copyData(), ripley::RipleyDomain::dofToNodes(), speckley::Brick::gradient_order10(), speckley::Rectangle::gradient_order10(), speckley::Brick::gradient_order2(), speckley::Rectangle::gradient_order2(), speckley::Brick::gradient_order3(), speckley::Rectangle::gradient_order3(), speckley::Brick::gradient_order4(), speckley::Rectangle::gradient_order4(), speckley::Brick::gradient_order5(), speckley::Rectangle::gradient_order5(), speckley::Brick::gradient_order6(), speckley::Rectangle::gradient_order6(), speckley::Brick::gradient_order7(), speckley::Rectangle::gradient_order7(), speckley::Brick::gradient_order8(), speckley::Rectangle::gradient_order8(), speckley::Brick::gradient_order9(), speckley::Rectangle::gradient_order9(), speckley::RipleyCoupler::interpolate(), speckley::Brick::interpolateElementsOnNodes(), speckley::Rectangle::interpolateElementsOnNodesWorker(), ripley::MultiBrick::interpolateElementsToElementsCoarserWorker(), ripley::MultiRectangle::interpolateElementsToElementsCoarserWorker(), ripley::MultiBrick::interpolateElementsToElementsFinerWorker(), ripley::MultiRectangle::interpolateElementsToElementsFinerWorker(), speckley::Brick::interpolateFromCorners(), speckley::Rectangle::interpolateFromCorners(), speckley::Brick::interpolateNodesOnElementsWorker(), speckley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnElementsWorker(), ripley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnFacesWorker(), ripley::Rectangle::interpolateNodesOnFacesWorker(), ripley::MultiBrick::interpolateNodesToElementsFinerWorker(), ripley::MultiRectangle::interpolateNodesToElementsFinerWorker(), ripley::MultiBrick::interpolateNodesToNodesFinerWorker(), ripley::MultiRectangle::interpolateNodesToNodesFinerWorker(), ripley::RipleyDomain::interpolateOnDomain(), speckley::SpeckleyDomain::interpolateOnDomain(), ripley::MultiBrick::interpolateReducedToElementsFinerWorker(), ripley::MultiRectangle::interpolateReducedToElementsFinerWorker(), ripley::MultiBrick::interpolateReducedToReducedFinerWorker(), ripley::MultiRectangle::interpolateReducedToReducedFinerWorker(), ripley::RipleyDomain::multiplyData(), speckley::SpeckleyDomain::multiplyData(), ripley::Brick::nodesToDOF(), ripley::Rectangle::nodesToDOF(), print(), speckley::Brick::randomFill(), ripley::Brick::readBinaryGridImpl(), ripley::Rectangle::readBinaryGridImpl(), speckley::Brick::readBinaryGridImpl(), speckley::Rectangle::readBinaryGridImpl(), ripley::Brick::readNcGrid(), ripley::Rectangle::readNcGrid(), speckley::Brick::readNcGrid(), speckley::Rectangle::readNcGrid(), speckley::Brick::reduction_order10(), speckley::Rectangle::reduction_order10(), speckley::Brick::reduction_order2(), speckley::Rectangle::reduction_order2(), speckley::Brick::reduction_order3(), speckley::Rectangle::reduction_order3(), speckley::Brick::reduction_order4(), speckley::Rectangle::reduction_order4(), speckley::Brick::reduction_order5(), speckley::Rectangle::reduction_order5(), speckley::Brick::reduction_order6(), speckley::Rectangle::reduction_order6(), speckley::Brick::reduction_order7(), speckley::Rectangle::reduction_order7(), speckley::Brick::reduction_order8(), speckley::Rectangle::reduction_order8(), speckley::Brick::reduction_order9(), speckley::Rectangle::reduction_order9(), ripley::Brick::setToNormal(), ripley::MultiBrick::setToNormal(), ripley::Rectangle::setToNormal(), ripley::Brick::setToSize(), ripley::MultiBrick::setToSize(), ripley::Rectangle::setToSize(), speckley::Brick::setToSize(), speckley::Rectangle::setToSize(), speckley::RipleyCoupler::shareBrickXFaces(), speckley::RipleyCoupler::shareBrickYFaces(), speckley::RipleyCoupler::shareBrickZFaces(), speckley::RipleyCoupler::shareRectangleXEdges(), and speckley::RipleyCoupler::shareRectangleYEdges().

◆ getShapeProduct()

long Data::getShapeProduct ( ) const

Returns the product of the data point shapes.

◆ getShapeTuple()

const bp::tuple Data::getShapeTuple ( ) const

Return the data point shape as a tuple of integers.

Referenced by BOOST_PYTHON_MODULE().

◆ getSlice()

Data Data::getSlice ( const DataTypes::RegionType region) const

Return a Data object containing the specified slice of this Data object.

Parameters
region- Input - Region to copy.

References Data().

Referenced by getItem().

◆ getTagNumber()

int Data::getTagNumber ( int  dpno)

Return the tag number associated with the given data-point.

Referenced by BOOST_PYTHON_MODULE().

◆ getValueOfDataPointAsTuple()

const bp::object Data::getValueOfDataPointAsTuple ( int  dataPointNo)

Return the value of a data point as a python tuple.

Referenced by BOOST_PYTHON_MODULE().

◆ getValueOfGlobalDataPointAsTuple()

const bp::object Data::getValueOfGlobalDataPointAsTuple ( int  procNo,
int  dataPointNo 
)

◆ getXFromFunctionSpace()

escript::Data escript::Data::getXFromFunctionSpace ( ) const
inline

Returns the spatial locations of the data points.

References getFunctionSpace(), and escript::FunctionSpace::getX().

Referenced by BOOST_PYTHON_MODULE().

◆ grad()

Data Data::grad ( ) const

Referenced by BOOST_PYTHON_MODULE().

◆ gradOn()

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.

Referenced by BOOST_PYTHON_MODULE().

◆ hasInf()

bool Data::hasInf ( )

Referenced by BOOST_PYTHON_MODULE().

◆ hasNaN()

bool Data::hasNaN ( )

returns return true if data contains NaN.

Warning
This is dependent on the ability to reliably detect NaNs on your compiler. See the nancheck function in LocalOps for details.

Referenced by BOOST_PYTHON_MODULE().

◆ hasNoSamples()

bool escript::Data::hasNoSamples ( ) const
inline

Return true if this object contains no samples. This is not the same as isEmpty()

◆ hermitian()

Data Data::hermitian ( ) const

Return the hermitian part of a matrix which is half the matrix plus its adjoint.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ imag()

Data Data::imag ( ) const

Referenced by BOOST_PYTHON_MODULE().

◆ inf()

real_t 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.

Referenced by BOOST_PYTHON_MODULE().

◆ inf_const()

real_t Data::inf_const ( ) const

◆ infWorker()

real_t Data::infWorker ( ) const
private

◆ init_from_data_and_fs()

void Data::init_from_data_and_fs ( const Data inData,
const FunctionSpace functionspace 
)
private

◆ initialise() [1/5]

void Data::initialise ( const DataTypes::cplx_t  value,
const DataTypes::ShapeType shape,
const FunctionSpace what,
bool  expanded 
)
private

◆ initialise() [2/5]

void Data::initialise ( const DataTypes::CplxVectorType value,
const DataTypes::ShapeType shape,
const FunctionSpace what,
bool  expanded 
)
private

◆ initialise() [3/5]

void Data::initialise ( const DataTypes::real_t  value,
const DataTypes::ShapeType shape,
const FunctionSpace what,
bool  expanded 
)
private

◆ initialise() [4/5]

void Data::initialise ( const DataTypes::RealVectorType value,
const DataTypes::ShapeType shape,
const FunctionSpace what,
bool  expanded 
)
private

Construct a Data object of the appropriate type.

Referenced by Data().

◆ initialise() [5/5]

void Data::initialise ( const WrappedArray value,
const FunctionSpace what,
bool  expanded 
)
private

◆ integrateToTuple()

bp::object Data::integrateToTuple ( )

Calculate the integral over the function space domain as a python tuple.

Referenced by BOOST_PYTHON_MODULE().

◆ integrateToTuple_const()

bp::object Data::integrateToTuple_const ( ) const

Calculate the integral over the function space domain as a python tuple.

◆ integrateWorker() [1/2]

template<typename Scalar >
bp::object escript::Data::integrateWorker ( ) const

◆ integrateWorker() [2/2]

template<typename Scalar >
boost::python::object escript::Data::integrateWorker ( ) const
private

◆ interpolate()

Data Data::interpolate ( const FunctionSpace functionspace) const

Interpolates this onto the given functionspace and returns the result as a Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::saveDataCSV().

◆ interpolateFromTable1D()

Data Data::interpolateFromTable1D ( const WrappedArray table,
DataTypes::real_t  Amin,
DataTypes::real_t  Astep,
DataTypes::real_t  undef,
bool  check_boundaries 
)

◆ interpolateFromTable1DP()

Data Data::interpolateFromTable1DP ( boost::python::object  table,
DataTypes::real_t  Amin,
DataTypes::real_t  Astep,
DataTypes::real_t  undef,
bool  check_boundaries 
)

Referenced by BOOST_PYTHON_MODULE().

◆ interpolateFromTable2D()

Data Data::interpolateFromTable2D ( const WrappedArray table,
DataTypes::real_t  Amin,
DataTypes::real_t  Astep,
DataTypes::real_t  undef,
Data B,
DataTypes::real_t  Bmin,
DataTypes::real_t  Bstep,
bool  check_boundaries 
)

◆ interpolateFromTable2DP()

Data Data::interpolateFromTable2DP ( boost::python::object  table,
DataTypes::real_t  Amin,
DataTypes::real_t  Astep,
Data B,
DataTypes::real_t  Bmin,
DataTypes::real_t  Bstep,
DataTypes::real_t  undef,
bool  check_boundaries 
)

Referenced by BOOST_PYTHON_MODULE().

◆ interpolateFromTable3D()

Data Data::interpolateFromTable3D ( const WrappedArray table,
DataTypes::real_t  Amin,
DataTypes::real_t  Astep,
DataTypes::real_t  undef,
Data B,
DataTypes::real_t  Bmin,
DataTypes::real_t  Bstep,
Data C,
DataTypes::real_t  Cmin,
DataTypes::real_t  Cstep,
bool  check_boundaries 
)

◆ interpolateFromTable3DP()

Data Data::interpolateFromTable3DP ( boost::python::object  table,
DataTypes::real_t  Amin,
DataTypes::real_t  Astep,
Data B,
DataTypes::real_t  Bmin,
DataTypes::real_t  Bstep,
Data C,
DataTypes::real_t  Cmin,
DataTypes::real_t  Cstep,
DataTypes::real_t  undef,
bool  check_boundaries 
)

Referenced by BOOST_PYTHON_MODULE().

◆ isComplex()

bool Data::isComplex ( ) const

True if components of this data are stored as complex.

Referenced by dudley::Assemble_AverageElementData(), finley::Assemble_AverageElementData(), dudley::Assemble_CopyElementData(), finley::Assemble_CopyElementData(), dudley::Assemble_CopyNodalData(), finley::Assemble_CopyNodalData(), dudley::Assemble_getNormal(), dudley::Assemble_getSize(), dudley::Assemble_gradient(), dudley::Assemble_integrate(), dudley::Assemble_interpolate(), dudley::Assemble_LumpedSystem(), dudley::Assemble_NodeCoordinates(), dudley::Assemble_PDE(), finley::Assemble_PDE(), speckley::DefaultAssembler2D::assembleComplexPDESingle(), ripley::Brick::assembleGradient(), ripley::Rectangle::assembleGradient(), speckley::Brick::assembleGradient(), speckley::Rectangle::assembleGradient(), speckley::DefaultAssembler2D::assemblePDEBoundarySingle(), speckley::DefaultAssembler2D::assemblePDEBoundarySingleReduced(), speckley::DefaultAssembler2D::assemblePDEBoundarySystem(), speckley::DefaultAssembler2D::assemblePDEBoundarySystemReduced(), speckley::DefaultAssembler2D::assemblePDESingle(), speckley::DefaultAssembler2D::assemblePDESingleReduced(), speckley::DefaultAssembler2D::assemblePDESystem(), speckley::DefaultAssembler2D::assemblePDESystemReduced(), BOOST_PYTHON_MODULE(), escript::condEval(), paso::TransportProblem::copyConstraint(), escript::MPIDataReducer::getCompatibilityInfo(), getValueOfGlobalDataPointAsTuple(), escript::MPIDataReducer::groupSend(), speckley::Rectangle::interpolateElementsOnNodes(), ripley::MultiBrick::interpolateElementsToElementsCoarser(), ripley::MultiRectangle::interpolateElementsToElementsCoarser(), ripley::MultiBrick::interpolateElementsToElementsFiner(), ripley::MultiRectangle::interpolateElementsToElementsFiner(), ripley::Brick::interpolateNodesOnElements(), ripley::Rectangle::interpolateNodesOnElements(), speckley::Brick::interpolateNodesOnElements(), speckley::Rectangle::interpolateNodesOnElements(), ripley::Brick::interpolateNodesOnFaces(), ripley::Rectangle::interpolateNodesOnFaces(), ripley::MultiBrick::interpolateNodesToElementsFiner(), ripley::MultiRectangle::interpolateNodesToElementsFiner(), ripley::MultiBrick::interpolateNodesToNodesFiner(), ripley::MultiRectangle::interpolateNodesToNodesFiner(), dudley::DudleyDomain::interpolateOnDomain(), finley::FinleyDomain::interpolateOnDomain(), ripley::RipleyDomain::interpolateOnDomain(), speckley::SpeckleyDomain::interpolateOnDomain(), ripley::MultiBrick::interpolateReducedToElementsFiner(), ripley::MultiRectangle::interpolateReducedToElementsFiner(), ripley::MultiBrick::interpolateReducedToReducedFiner(), ripley::MultiRectangle::interpolateReducedToReducedFiner(), paso::SystemMatrix< T >::nullifyRowsAndCols(), print(), speckley::Brick::reduceElements(), speckley::Rectangle::reduceElements(), escript::MPIDataReducer::sendTo(), dudley::NodeFile::setCoordinates(), dudley::ElementFile::setTags(), dudley::DudleyDomain::setToGradient(), finley::FinleyDomain::setToGradient(), speckley::SpeckleyDomain::setToGradient(), paso::SystemMatrix< T >::setToSolution(), paso::TransportProblem::setToSolution(), setToZero(), escript::AbstractSystemMatrix::solve(), toListOfTuples(), escript::AbstractSystemMatrix::vectorMultiply(), and paso::SystemMatrix< T >::ypAx().

◆ isConstant()

bool Data::isConstant ( ) const

◆ isDataPointShapeEqual()

bool escript::Data::isDataPointShapeEqual ( int  rank,
const int *  dimensions 
) const
inline

◆ isEmpty()

bool Data::isEmpty ( ) const
 \brief
 Return true if this Data holds an instance of DataEmpty. This is _not_ the same as asking if the object 

contains datapoints.

Referenced by dudley::DudleyDomain::addPDEToRHS(), dudley::DudleyDomain::addPDEToSystem(), dudley::DudleyDomain::addPDEToTransportProblem(), ripley::RipleyDomain::addToRHS(), speckley::SpeckleyDomain::addToRHS(), dudley::Assemble_LumpedSystem(), finley::Assemble_LumpedSystem(), dudley::Assemble_PDE(), finley::Assemble_PDE(), dudley::Assemble_PDE_Points(), finley::Assemble_PDE_Points(), finley::Assemble_PDE_Single_1D(), dudley::Assemble_PDE_Single_2D(), finley::Assemble_PDE_Single_2D(), dudley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_C(), finley::Assemble_PDE_System_1D(), dudley::Assemble_PDE_System_2D(), finley::Assemble_PDE_System_2D(), dudley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_C(), speckley::SpeckleyDomain::assembleComplexPDEDirac(), speckley::DefaultAssembler2D::assembleComplexPDESingle(), speckley::DefaultAssembler3D::assembleComplexPDESingle(), speckley::DefaultAssembler2D::assembleComplexPDESystem(), speckley::DefaultAssembler3D::assembleComplexPDESystem(), dudley::AssembleParameters::AssembleParameters(), finley::AssembleParameters::AssembleParameters(), ripley::RipleyDomain::assemblePDE(), speckley::SpeckleyDomain::assemblePDE(), ripley::RipleyDomain::assemblePDEBoundary(), speckley::SpeckleyDomain::assemblePDEBoundary(), speckley::DefaultAssembler3D::assemblePDEBoundarySingle(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySingle(), speckley::DefaultAssembler3D::assemblePDEBoundarySingleReduced(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySingleReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySingleReduced(), ripley::LameAssembler2D::assemblePDEBoundarySystem(), ripley::LameAssembler3D::assemblePDEBoundarySystem(), speckley::DefaultAssembler3D::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystem(), speckley::DefaultAssembler3D::assemblePDEBoundarySystemReduced(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::RipleyDomain::assemblePDEDirac(), speckley::SpeckleyDomain::assemblePDEDirac(), speckley::DefaultAssembler3D::assemblePDESingle(), ripley::DefaultAssembler2D< Scalar >::assemblePDESingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDESingle(), speckley::DefaultAssembler2D::assemblePDESingle(), speckley::DefaultAssembler3D::assemblePDESingleReduced(), ripley::DefaultAssembler2D< Scalar >::assemblePDESingleReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDESingleReduced(), ripley::LameAssembler2D::assemblePDESystem(), ripley::LameAssembler3D::assemblePDESystem(), ripley::WaveAssembler2D::assemblePDESystem(), ripley::WaveAssembler3D::assemblePDESystem(), speckley::DefaultAssembler3D::assemblePDESystem(), speckley::WaveAssembler2D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystem(), speckley::DefaultAssembler2D::assemblePDESystem(), speckley::WaveAssembler3D::assemblePDESystem(), speckley::DefaultAssembler3D::assemblePDESystemReduced(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystemReduced(), BOOST_PYTHON_MODULE(), escript::convertToData(), escript::MPIDataReducer::copyValueFrom(), dp_algorithm(), expand(), escript::AbstractTransportProblem::insertConstraint(), escript::MPIDataReducer::reduceLocalValue(), reduction(), setToZero(), speckley::WaveAssembler2D::WaveAssembler2D(), and speckley::WaveAssembler3D::WaveAssembler3D().

◆ isExpanded()

bool Data::isExpanded ( ) const

Return true if this Data is expanded.

Note
To determine if a sample will contain separate values for each datapoint. Use actsExpanded instead.

Referenced by BOOST_PYTHON_MODULE(), dp_algorithm(), expand(), escript::MPIDataReducer::getCompatibilityInfo(), reduction(), ripley::RipleyDomain::setToX(), and speckley::SpeckleyDomain::setToX().

◆ isLazy()

bool Data::isLazy ( ) const

◆ isProtected()

bool Data::isProtected ( ) const

Returns true, if the data object is protected against update.

Referenced by BOOST_PYTHON_MODULE().

◆ isReady()

bool Data::isReady ( ) const

Return true if this data is ready.

Referenced by BOOST_PYTHON_MODULE().

◆ isShared()

bool escript::Data::isShared ( ) const
inlineprivate

Referenced by setToZero().

◆ isTagged()

bool Data::isTagged ( ) const

◆ lazyAlgWorker() [1/2]

template<class BinaryOp >
DataTypes::real_t escript::Data::lazyAlgWorker ( DataTypes::real_t  init)
private

◆ lazyAlgWorker() [2/2]

template<class BinaryOp >
real_t escript::Data::lazyAlgWorker ( real_t  init)

◆ log()

Data Data::log ( ) const

Return the natural log of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ log10()

Data Data::log10 ( ) const

Return the log to base 10 of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ Lsup()

real_t 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.

Referenced by BOOST_PYTHON_MODULE().

◆ Lsup_const()

real_t Data::Lsup_const ( ) const

◆ LsupWorker()

real_t Data::LsupWorker ( ) const
private

◆ maskWorker()

template<typename S >
void Data::maskWorker ( Data other2,
Data mask2,
S  sentinel 
)
private

◆ matrixInverse()

Data Data::matrixInverse ( ) const

◆ maxGlobalDataPoint()

const bp::tuple Data::maxGlobalDataPoint ( ) const
 \brief
 Return the (sample number, data-point number) of the data point with
 the minimum component value in this Data object.
 \note If you are working in python, please consider using Locator 

instead of manually manipulating process and point IDs.

Referenced by BOOST_PYTHON_MODULE().

◆ maxval()

Data Data::maxval ( ) const

Return the maximum value of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE().

◆ maxval_nonlazy()

Data Data::maxval_nonlazy ( ) const
inlineprivate

◆ minGlobalDataPoint()

const bp::tuple Data::minGlobalDataPoint ( ) const
 \brief
 Return the (sample number, data-point number) of the data point with
 the minimum component value in this Data object.
 \note If you are working in python, please consider using Locator 

instead of manually manipulating process and point IDs.

Referenced by BOOST_PYTHON_MODULE().

◆ minval()

Data Data::minval ( ) const

Return the minimum value of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ minval_nonlazy()

Data Data::minval_nonlazy ( ) const
inlineprivate

References dp_algorithm(), and THROWONCOMPLEX.

◆ neg()

Data Data::neg ( ) const

Return the negation of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ nonuniforminterp()

Data Data::nonuniforminterp ( boost::python::object  in,
boost::python::object  out,
bool  check_boundaries 
)

Referenced by BOOST_PYTHON_MODULE().

◆ nonuniformslope()

Data Data::nonuniformslope ( boost::python::object  in,
boost::python::object  out,
bool  check_boundaries 
)

Referenced by BOOST_PYTHON_MODULE().

◆ numSamplesEqual()

bool escript::Data::numSamplesEqual ( int  numDataPointsPerSample,
int  numSamples 
) const
inline

◆ oneOver()

Data Data::oneOver ( ) const

Returns 1./ Data object.

Referenced by escript::DataLazy::collapseToReady().

◆ operandCheck()

void escript::Data::operandCheck ( const Data right) const
inlineprivate

Check *this and the right operand are compatible. Throws an exception if they aren't.

Parameters
right- Input - The right hand side.

References m_data.

◆ operator*=() [1/2]

Data & Data::operator*= ( const boost::python::object &  right)

◆ operator*=() [2/2]

Data & Data::operator*= ( const Data right)

Overloaded operator *=.

Parameters
right- Input - The right hand side.

◆ operator+=() [1/2]

Data & Data::operator+= ( const boost::python::object &  right)

◆ operator+=() [2/2]

Data & Data::operator+= ( const Data right)

Overloaded operator +=.

Parameters
right- Input - The right hand side.

◆ operator-=() [1/2]

Data & Data::operator-= ( const boost::python::object &  right)

◆ operator-=() [2/2]

Data & Data::operator-= ( const Data right)

Overloaded operator -=.

Parameters
right- Input - The right hand side.

◆ operator/=() [1/2]

Data & Data::operator/= ( const boost::python::object &  right)

◆ operator/=() [2/2]

Data & Data::operator/= ( const Data right)

Overloaded operator /=.

Parameters
right- Input - The right hand side.

◆ operator=()

Data & Data::operator= ( const Data other)

◆ phase()

Data Data::phase ( ) const

Return the phase/arg/angular-part of complex values.

Referenced by BOOST_PYTHON_MODULE().

◆ pos()

Data Data::pos ( ) const

Return the identity of each data point of this Data object. Simply returns this object unmodified.

Referenced by BOOST_PYTHON_MODULE().

◆ powD()

Data Data::powD ( const Data right) const

Return the given power of each data point of this Data object.

Parameters
rightInput - the power to raise the object to.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ powO()

Data Data::powO ( const boost::python::object &  right) const

Return the given power of each data point of this boost python object.

Parameters
rightInput - the power to raise the object to.

Referenced by BOOST_PYTHON_MODULE().

◆ print()

void Data::print ( void  )

print the data values to stdout. Used for debugging

References getNumDataPointsPerSample(), getNumSamples(), getSampleDataRW(), and isComplex().

◆ probeInterpolation()

bool Data::probeInterpolation ( const FunctionSpace functionspace) const

Returns true if this can be interpolated to functionspace.

◆ real()

Data Data::real ( ) const

Referenced by BOOST_PYTHON_MODULE().

◆ reduction()

template<class BinaryFunction >
DataTypes::real_t escript::Data::reduction ( BinaryFunction  operation,
DataTypes::real_t  initial_value 
) const
inlineprivate

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 ESYS_ASSERT, escript::DataTagged::getDefaultOffset(), escript::DataAbstract::getFunctionSpace(), escript::FunctionSpace::getListOfTagsSTL(), escript::DataAbstract::getNumDPPSample(), escript::DataAbstract::getNumSamples(), escript::DataExpanded::getPointOffset(), escript::DataAbstract::getShape(), escript::DataTagged::getTagLookup(), escript::DataConstant::getTypedVectorRO(), escript::DataExpanded::getTypedVectorRO(), escript::DataTagged::getTypedVectorRO(), isConstant(), isEmpty(), isExpanded(), isLazy(), isTagged(), m_data, escript::reductionOpVector(), and tag().

◆ replaceInf() [1/2]

void Data::replaceInf ( DataTypes::cplx_t  value)

◆ replaceInf() [2/2]

void Data::replaceInf ( DataTypes::real_t  value)

◆ replaceInfPython()

void Data::replaceInfPython ( boost::python::object  obj)

Referenced by BOOST_PYTHON_MODULE().

◆ replaceNaN() [1/2]

void Data::replaceNaN ( DataTypes::cplx_t  value)

replaces all NaN values with value

◆ replaceNaN() [2/2]

void Data::replaceNaN ( DataTypes::real_t  value)

replaces all NaN values with value

◆ replaceNaNPython()

void Data::replaceNaNPython ( boost::python::object  obj)

replaces all NaN values with value

Referenced by BOOST_PYTHON_MODULE().

◆ requireWrite()

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.

Warning
This method should only be called in single threaded sections of code. (It modifies m_data). Do not create any Data objects from this one between calling requireWrite and getSampleDataRW. Doing so might introduce additional sharing.

Referenced by dudley::Assemble_AverageElementData(), finley::Assemble_AverageElementData(), dudley::Assemble_CopyElementData(), finley::Assemble_CopyElementData(), dudley::Assemble_CopyNodalData(), finley::Assemble_CopyNodalData(), dudley::Assemble_getNormal(), finley::Assemble_getNormal(), dudley::Assemble_getSize(), finley::Assemble_getSize(), dudley::Assemble_gradient(), finley::Assemble_gradient(), dudley::Assemble_interpolate(), finley::Assemble_interpolate(), dudley::Assemble_LumpedSystem(), finley::Assemble_LumpedSystem(), dudley::Assemble_NodeCoordinates(), finley::Assemble_NodeCoordinates(), dudley::Assemble_PDE_Points(), finley::Assemble_PDE_Points(), finley::Assemble_PDE_Single_1D(), dudley::Assemble_PDE_Single_2D(), finley::Assemble_PDE_Single_2D(), dudley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_3D(), finley::Assemble_PDE_Single_C(), finley::Assemble_PDE_System_1D(), dudley::Assemble_PDE_System_2D(), finley::Assemble_PDE_System_2D(), dudley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_3D(), finley::Assemble_PDE_System_C(), speckley::SpeckleyDomain::assembleComplexPDEDirac(), speckley::DefaultAssembler2D::assembleComplexPDESingle(), speckley::DefaultAssembler3D::assembleComplexPDESingle(), speckley::DefaultAssembler2D::assembleComplexPDESystem(), speckley::DefaultAssembler3D::assembleComplexPDESystem(), ripley::Brick::assembleCoordinates(), ripley::Rectangle::assembleCoordinates(), speckley::Brick::assembleCoordinates(), speckley::Rectangle::assembleCoordinates(), ripley::Brick::assembleGradientImpl(), ripley::Rectangle::assembleGradientImpl(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySingle(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySingleReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySingleReduced(), ripley::LameAssembler2D::assemblePDEBoundarySystem(), ripley::LameAssembler3D::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDEBoundarySystemReduced(), ripley::RipleyDomain::assemblePDEDirac(), speckley::SpeckleyDomain::assemblePDEDirac(), ripley::DefaultAssembler2D< Scalar >::assemblePDESingle(), ripley::DefaultAssembler3D< Scalar >::assemblePDESingle(), speckley::DefaultAssembler2D::assemblePDESingle(), speckley::DefaultAssembler3D::assemblePDESingle(), ripley::DefaultAssembler2D< Scalar >::assemblePDESingleReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDESingleReduced(), ripley::LameAssembler2D::assemblePDESystem(), ripley::LameAssembler3D::assemblePDESystem(), ripley::WaveAssembler2D::assemblePDESystem(), ripley::WaveAssembler3D::assemblePDESystem(), speckley::WaveAssembler2D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystem(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystem(), speckley::DefaultAssembler2D::assemblePDESystem(), speckley::DefaultAssembler3D::assemblePDESystem(), speckley::WaveAssembler3D::assemblePDESystem(), ripley::DefaultAssembler2D< Scalar >::assemblePDESystemReduced(), ripley::DefaultAssembler3D< Scalar >::assemblePDESystemReduced(), ripley::RipleyDomain::averageData(), paso::TransportProblem::copyConstraint(), ripley::RipleyDomain::copyData(), speckley::SpeckleyDomain::copyData(), ripley::RipleyDomain::dofToNodes(), speckley::Brick::gradient_order10(), speckley::Rectangle::gradient_order10(), speckley::Brick::gradient_order2(), speckley::Rectangle::gradient_order2(), speckley::Brick::gradient_order3(), speckley::Rectangle::gradient_order3(), speckley::Brick::gradient_order4(), speckley::Rectangle::gradient_order4(), speckley::Brick::gradient_order5(), speckley::Rectangle::gradient_order5(), speckley::Brick::gradient_order6(), speckley::Rectangle::gradient_order6(), speckley::Brick::gradient_order7(), speckley::Rectangle::gradient_order7(), speckley::Brick::gradient_order8(), speckley::Rectangle::gradient_order8(), speckley::Brick::gradient_order9(), speckley::Rectangle::gradient_order9(), speckley::RipleyCoupler::interpolate(), speckley::Brick::interpolateElementsOnNodes(), speckley::Rectangle::interpolateElementsOnNodesWorker(), ripley::MultiBrick::interpolateElementsToElementsCoarserWorker(), ripley::MultiRectangle::interpolateElementsToElementsCoarserWorker(), ripley::MultiBrick::interpolateElementsToElementsFinerWorker(), ripley::MultiRectangle::interpolateElementsToElementsFinerWorker(), speckley::Brick::interpolateNodesOnElementsWorker(), speckley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnElementsWorker(), ripley::Rectangle::interpolateNodesOnElementsWorker(), ripley::Brick::interpolateNodesOnFacesWorker(), ripley::Rectangle::interpolateNodesOnFacesWorker(), ripley::MultiBrick::interpolateNodesToElementsFinerWorker(), ripley::MultiRectangle::interpolateNodesToElementsFinerWorker(), ripley::MultiBrick::interpolateNodesToNodesFinerWorker(), ripley::MultiRectangle::interpolateNodesToNodesFinerWorker(), ripley::RipleyDomain::interpolateOnDomain(), speckley::SpeckleyDomain::interpolateOnDomain(), ripley::MultiBrick::interpolateReducedToElementsFinerWorker(), ripley::MultiRectangle::interpolateReducedToElementsFinerWorker(), ripley::MultiBrick::interpolateReducedToReducedFinerWorker(), ripley::MultiRectangle::interpolateReducedToReducedFinerWorker(), ripley::RipleyDomain::multiplyData(), speckley::SpeckleyDomain::multiplyData(), ripley::Brick::nodesToDOF(), ripley::Rectangle::nodesToDOF(), paso::SystemMatrix< T >::nullifyRowsAndCols(), ripley::Brick::readBinaryGridImpl(), ripley::Rectangle::readBinaryGridImpl(), speckley::Brick::readBinaryGridImpl(), speckley::Rectangle::readBinaryGridImpl(), ripley::Brick::readNcGrid(), ripley::Rectangle::readNcGrid(), speckley::Brick::readNcGrid(), speckley::Rectangle::readNcGrid(), ripley::Brick::setToNormal(), ripley::MultiBrick::setToNormal(), ripley::Rectangle::setToNormal(), ripley::Brick::setToSize(), ripley::MultiBrick::setToSize(), ripley::Rectangle::setToSize(), speckley::Brick::setToSize(), speckley::Rectangle::setToSize(), paso::SystemMatrix< T >::setToSolution(), paso::TransportProblem::setToSolution(), and paso::SystemMatrix< T >::ypAx().

◆ resolve()

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.

Referenced by BOOST_PYTHON_MODULE(), expand(), escript::MPIDataReducer::groupSend(), matrixInverse(), and escript::MPIDataReducer::sendTo().

◆ rpowO()

Data Data::rpowO ( const boost::python::object &  left) const

Return the given power of each data point of this boost python object.

Parameters
leftInput - the bases

Referenced by BOOST_PYTHON_MODULE().

◆ rtruedivO()

Data escript::Data::rtruedivO ( const boost::python::object &  left)
inline

Newer style division operator for python.

Operator/ Takes LHS python::object.

References getFunctionSpace(), and truedivD().

Referenced by BOOST_PYTHON_MODULE().

◆ set_m_data()

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)

Warning
Only to be called in single threaded code or inside a single/critical section. This method needs to be atomic.

References m_data.

Referenced by expand(), and setToZero().

◆ setItemD()

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.

Parameters
key- Input - python slice tuple specifying slice to copy from value.
value- Input - Data object to copy from.

Referenced by BOOST_PYTHON_MODULE().

◆ setItemO()

void Data::setItemO ( const boost::python::object &  key,
const boost::python::object &  value 
)

References getFunctionSpace().

Referenced by BOOST_PYTHON_MODULE().

◆ setProtection()

void Data::setProtection ( )

switches on update protection

Member access methods.

Referenced by BOOST_PYTHON_MODULE(), escript::FunctionSpace::getNormal(), escript::FunctionSpace::getSize(), and escript::FunctionSpace::getX().

◆ setSlice()

void Data::setSlice ( const Data value,
const DataTypes::RegionType region 
)

Copy the specified slice from the given value into this Data object.

Parameters
value- Input - Data to copy from.
region- Input - Region to copy.

◆ setTaggedValue()

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.

Parameters
tagKey- Input - Integer key.
value- Input - Value to associate with given key. ==>*

Referenced by BOOST_PYTHON_MODULE(), and setTaggedValueByName().

◆ setTaggedValueByName()

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.

Parameters
name- Input - name of tag.
value- Input - Value to associate with given key.

References exclusiveWrite(), forceResolve(), getDomain(), escript::FunctionSpace::getDomain(), getFunctionSpace(), and setTaggedValue().

Referenced by BOOST_PYTHON_MODULE().

◆ setTaggedValueFromCPP() [1/2]

void Data::setTaggedValueFromCPP ( int  tagKey,
const DataTypes::ShapeType pointshape,
const DataTypes::CplxVectorType value,
int  dataOffset = 0 
)

◆ setTaggedValueFromCPP() [2/2]

void Data::setTaggedValueFromCPP ( int  tagKey,
const DataTypes::ShapeType pointshape,
const DataTypes::RealVectorType value,
int  dataOffset = 0 
)

Assign the given value to the tag. Implicitly converts this object to type DataTagged if it is constant.

Parameters
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

Referenced by escript::MPIDataReducer::groupSend(), and escript::MPIDataReducer::recvFrom().

◆ setToZero()

void Data::setToZero ( )

set all values to zero

Data object operation methods and operators.

References getDataPointShape(), getFunctionSpace(), getNoValues(), escript::DataAbstract::getPtr(), isComplex(), isEmpty(), isLazy(), isShared(), m_data, and set_m_data().

Referenced by BOOST_PYTHON_MODULE().

◆ setTupleForGlobalDataPoint()

void Data::setTupleForGlobalDataPoint ( int  id,
int  proc,
boost::python::object   
)

Set the value of a global data point.

Referenced by BOOST_PYTHON_MODULE().

◆ setValueOfDataPoint()

void Data::setValueOfDataPoint ( int  dataPointNo,
const DataTypes::real_t  value 
)

sets the values of a data-point on this process

Referenced by BOOST_PYTHON_MODULE().

◆ setValueOfDataPointC()

void Data::setValueOfDataPointC ( int  dataPointNo,
const DataTypes::cplx_t  value 
)

◆ setValueOfDataPointToArray()

void Data::setValueOfDataPointToArray ( int  dataPointNo,
const boost::python::object &   
)

sets the values of a data-point from a array-like object on this process

Referenced by BOOST_PYTHON_MODULE().

◆ setValueOfDataPointToPyObject()

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

Referenced by BOOST_PYTHON_MODULE().

◆ sign()

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.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ sin()

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().

◆ sinh()

Data Data::sinh ( ) const

Return the sinh of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ sqrt()

Data Data::sqrt ( ) const

Return the square root of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ sup()

real_t 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.

Referenced by BOOST_PYTHON_MODULE().

◆ sup_const()

real_t Data::sup_const ( ) const

◆ supWorker()

real_t Data::supWorker ( ) const
private

◆ swapaxes()

Data Data::swapaxes ( const int  axis0,
const int  axis1 
) const

swaps the components axis0 and axis1

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ symmetric()

Data Data::symmetric ( ) const

Return the symmetric part of a matrix which is half the matrix plus its transpose.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ tag()

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.

Referenced by BOOST_PYTHON_MODULE(), escript::MPIDataReducer::groupSend(), escript::MPIDataReducer::recvFrom(), and reduction().

◆ tan()

Data Data::tan ( ) const

Return the tan of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ tanh()

Data Data::tanh ( ) const

Return the tanh of each data point of this Data object.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ TensorSelfUpdateBinaryOperation()

void Data::TensorSelfUpdateBinaryOperation ( const Data right,
escript::ES_optype  operation 
)
private

◆ toListOfTuples()

const bp::object Data::toListOfTuples ( bool  scalarastuple = true)

returns the values of the object as a list of tuples (one for each datapoint).

Parameters
scalarastupleIf 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::getTypedVectorRO(), escript::DataReady::getVectorRO(), and isComplex().

Referenced by BOOST_PYTHON_MODULE().

◆ toString()

std::string Data::toString ( ) const

Write the data as a string. For large amounts of data, a summary is printed.

Referenced by BOOST_PYTHON_MODULE().

◆ trace()

Data Data::trace ( int  axis_offset) const

Return the trace of a matrix.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ transpose()

Data Data::transpose ( int  axis_offset) const

Transpose each data point of this Data object around the given axis.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ truedivD()

Data escript::Data::truedivD ( const Data right)
inline

Newer style division operator for python.

Operator/ Takes RHS Data object.

Referenced by BOOST_PYTHON_MODULE(), rtruedivO(), and truedivO().

◆ truedivO()

Data escript::Data::truedivO ( const boost::python::object &  right)
inline

Newer style division operator for python.

Operator/ Takes RHS python::object.

References getFunctionSpace(), and truedivD().

Referenced by BOOST_PYTHON_MODULE().

◆ typeMatchLeft()

void Data::typeMatchLeft ( Data right) const
private

Convert the data type of the RHS to match this.

Parameters
right- Input - data type to match.

◆ typeMatchRight()

void Data::typeMatchRight ( const Data right)
private

Convert the data type of this to match the RHS.

Parameters
right- Input - data type to match.

◆ unaryOp2()

template<class UnaryFunction >
void escript::Data::unaryOp2 ( UnaryFunction  operation)
inline

Perform the given unary operation on every element of every data point in this Data object.

◆ whereNegative()

Data Data::whereNegative ( ) const

Return a Data with a 1 for -ive values and a 0 for +ive or 0 values.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ whereNonNegative()

Data Data::whereNonNegative ( ) const

Return a Data with a 1 for +ive or 0 values and a 0 for -ive values.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ whereNonPositive()

Data Data::whereNonPositive ( ) const

Return a Data with a 1 for -ive or 0 values and a 0 for +ive values.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ whereNonZero()

Data Data::whereNonZero ( DataTypes::real_t  tol = 0.0) const

Return a Data with a 0 for 0 values and a 1 for +ive or -ive values.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ wherePositive()

Data Data::wherePositive ( ) const

Return a Data with a 1 for +ive values and a 0 for 0 or -ive values.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

◆ whereZero()

Data Data::whereZero ( DataTypes::real_t  tol = 0.0) const

Return a Data with a 1 for 0 values and a 0 for +ive or -ive values.

Referenced by BOOST_PYTHON_MODULE(), and escript::DataLazy::collapseToReady().

Friends And Related Function Documentation

◆ condEvalWorker

template<typename S >
Data condEvalWorker ( escript::Data mask,
escript::Data trueval,
escript::Data falseval,
S  sentinel 
)
friend

◆ DataAbstract

friend class DataAbstract
friend

◆ randomData

Data randomData ( const boost::python::tuple &  shape,
const FunctionSpace what,
long  seed,
const boost::python::tuple &  filter 
)
friend

Create a new Expanded Data object filled with pseudo-random data.

◆ TestDomain

friend class TestDomain
friend

Member Data Documentation

◆ m_data

DataAbstract_ptr escript::Data::m_data
private

◆ m_lazy

bool escript::Data::m_lazy
private

◆ m_protected

bool escript::Data::m_protected
private

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