19 #ifndef __ESCRIPT_DATATAGGED_H__
20 #define __ESCRIPT_DATATAGGED_H__
54 typedef std::vector<DataTypes::CplxVectorType::ElementType>
CplxBatchType;
253 dump(
const std::string fileName)
const;
279 getTagNumber(
int dpno);
295 getPointOffset(
int sampleNo,
296 int dataPointNo)
const;
316 addTaggedValues(
const TagListType& tagKeys,
317 const FloatBatchType& values,
338 addTaggedValues(
const TagListType& tagKeys,
358 addTaggedValue(
int tagKey,
364 addTaggedValue(
int tagKey,
396 setTaggedValue(
int tagKey,
402 setTaggedValue(
int tagKey,
441 getOffsetForTag(
int tag)
const;
460 getVectorROC()
const;
488 getTagLookup()
const;
502 isCurrentTag(
int tag)
const;
684 getDefaultOffset()
const;
705 static const int m_defaultValueOffset = 0;
#define V(_K_, _I_)
Definition: ShapeFunctions.cpp:121
Definition: DataAbstract.h:63
DataConstant stores a single data point which represents the entire function space.
Definition: DataConstant.h:38
Definition: DataReady.h:37
Simulates a full dataset accessible via sampleNo and dataPointNo.
Definition: DataTagged.h:46
DataTypes::RealVectorType::const_reference getDefaultValueRO(DataTypes::RealVectorType::size_type i, DataTypes::real_t dummy=0) const
Definition: DataTagged.h:738
bool isTagged() const
Definition: DataTagged.h:153
DataTypes::CplxVectorType::const_reference getDataByTagRO(int tag, DataTypes::CplxVectorType::size_type i, DataTypes::cplx_t dummy) const
virtual ~DataTagged()
Destructor.
Definition: DataTagged.h:150
std::vector< DataTypes::CplxVectorType::ElementType > CplxBatchType
Definition: DataTagged.h:54
bool isCurrentTag(int tag) const
isCurrentTag
Definition: DataTagged.h:716
DataMapType m_offsetLookup
Definition: DataTagged.h:701
DataTypes::RealVectorType::size_type getDefaultOffset() const
Returns the offset in the structure which stores the default value.
Definition: DataTagged.h:724
std::vector< DataTypes::RealVectorType::ElementType > FloatBatchType
Definition: DataTagged.h:53
DataReady parent
Definition: DataTagged.h:47
std::map< int, int > DataMapType
Definition: DataTagged.h:58
DataTypes::CplxVectorType::reference getDataByTagRW(int tag, DataTypes::CplxVectorType::size_type i, DataTypes::cplx_t dummy)
static const int m_defaultValueOffset
Definition: DataTagged.h:705
virtual DataTypes::RealVectorType::size_type getLength() const
getLength
Definition: DataTagged.h:769
DataTypes::CplxVectorType m_data_c
Definition: DataTagged.h:709
DataTypes::CplxVectorType::reference getDefaultValueRW(DataTypes::CplxVectorType::size_type i, DataTypes::cplx_t dummy)
std::vector< int > TagListType
Definition: DataTagged.h:52
DataTypes::RealVectorType m_data_r
Definition: DataTagged.h:708
DataTypes::RealVectorType::reference getDefaultValueRW(DataTypes::RealVectorType::size_type i, DataTypes::real_t dummy=0)
getDefaultValue
Definition: DataTagged.h:731
const DataMapType & getTagLookup() const
getTagLookup
Definition: DataTagged.h:762
const DataTypes::CplxVectorType & getVectorROC() const
Definition: DataTagged.cpp:1663
DataTypes::RealVectorType & getVectorRW()
Return a reference to the underlying DataVector.
Definition: DataTagged.cpp:1643
const DataTypes::RealVectorType & getVectorRO() const
Definition: DataTagged.cpp:1650
DataTypes::CplxVectorType & getVectorRWC()
Definition: DataTagged.cpp:1656
size_type size() const
Return the number of elements in this DataVectorAlt.
Definition: DataVectorAlt.h:215
const ElementType & const_reference
Definition: DataVectorAlt.h:52
ElementType & reference
Definition: DataVectorAlt.h:51
DataTypes::vec_size_type size_type
Definition: DataVectorAlt.h:50
Definition: FunctionSpace.h:36
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:30
std::complex< real_t > cplx_t
complex data type
Definition: DataTypes.h:55
std::vector< std::pair< int, int > > RegionType
Definition: DataTypes.h:45
double real_t
type of all real-valued scalars in escript
Definition: DataTypes.h:52
std::vector< int > ShapeType
The shape of a single datapoint.
Definition: DataTypes.h:44
Definition: AbstractContinuousDomain.cpp:23
void eigenvalues_and_eigenvectors(const DataTypes::RealVectorType &in, const DataTypes::ShapeType &inShape, DataTypes::RealVectorType::size_type inOffset, DataTypes::RealVectorType &ev, const DataTypes::ShapeType &evShape, DataTypes::RealVectorType::size_type evOffset, DataTypes::RealVectorType &V, const DataTypes::ShapeType &VShape, DataTypes::RealVectorType::size_type VOffset, const double tol=1.e-13)
solves a local eigenvalue problem
Definition: DataVectorOps.h:750
void eigenvalues(const DataTypes::RealVectorType &in, const DataTypes::ShapeType &inShape, typename DataTypes::RealVectorType::size_type inOffset, DataTypes::RealVectorType &ev, const DataTypes::ShapeType &evShape, typename DataTypes::RealVectorType::size_type evOffset)
solves a local eigenvalue problem
Definition: DataVectorOps.h:639
void symmetric(const VEC &in, const DataTypes::ShapeType &inShape, typename VEC::size_type inOffset, VEC &ev, const DataTypes::ShapeType &evShape, typename VEC::size_type evOffset)
computes a symmetric matrix from your square matrix A: (A + transpose(A)) / 2
Definition: DataVectorOps.h:103
void swapaxes(const VEC &in, const DataTypes::ShapeType &inShape, typename VEC::size_type inOffset, VEC &ev, const DataTypes::ShapeType &evShape, typename VEC::size_type evOffset, int axis0, int axis1)
swaps the components axis0 and axis1.
Definition: DataVectorOps.h:488
void transpose(const VEC &in, const DataTypes::ShapeType &inShape, typename VEC::size_type inOffset, VEC &ev, const DataTypes::ShapeType &evShape, typename VEC::size_type evOffset, int axis_offset)
Transpose each data point of this Data object around the given axis.
Definition: DataVectorOps.h:343
void antisymmetric(const VEC &in, const DataTypes::ShapeType &inShape, typename VEC::size_type inOffset, VEC &ev, const DataTypes::ShapeType &evShape, typename VEC::size_type evOffset)
computes a antisymmetric matrix from your square matrix A: (A - transpose(A)) / 2
Definition: DataVectorOps.h:152
void antihermitian(const DataTypes::CplxVectorType &in, const DataTypes::ShapeType &inShape, typename DataTypes::CplxVectorType::size_type inOffset, DataTypes::CplxVectorType &ev, const DataTypes::ShapeType &evShape, typename DataTypes::CplxVectorType::size_type evOffset)
computes a antihermitian matrix from your square matrix A: (A - adjoint(A)) / 2
Definition: DataVectorOps.cpp:963
void trace(const VEC &in, const DataTypes::ShapeType &inShape, typename VEC::size_type inOffset, VEC &ev, const DataTypes::ShapeType &evShape, typename VEC::size_type evOffset, int axis_offset)
computes the trace of a matrix
Definition: DataVectorOps.h:242
void hermitian(const DataTypes::CplxVectorType &in, const DataTypes::ShapeType &inShape, DataTypes::CplxVectorType::size_type inOffset, DataTypes::CplxVectorType &ev, const DataTypes::ShapeType &evShape, DataTypes::CplxVectorType::size_type evOffset)
computes an hermitian matrix from your square matrix A: (A + adjoint(A)) / 2
Definition: DataVectorOps.cpp:916