#include <WrappedArray.h>
Public Member Functions | |
WrappedArray (const boost::python::object &obj_in) | |
unsigned int | getRank () const |
const DataTypes::ShapeType & | getShape () const |
double | getElt () const |
double | getElt (unsigned int i) const |
double | getElt (unsigned int i, unsigned int j) const |
double | getElt (unsigned int i, unsigned int j, unsigned int k) const |
double | getElt (unsigned int i, unsigned int j, unsigned int k, unsigned int m) const |
Private Attributes | |
const boost::python::object & | obj |
int | rank |
escript::DataTypes::ShapeType | shape |
double | m_scalar |
WrappedArray::WrappedArray | ( | const boost::python::object & | obj_in | ) |
References checkFeatures(), getObjShape(), m_scalar, obj, rank, and shape.
unsigned int escript::WrappedArray::getRank | ( | ) | const [inline] |
References rank.
Referenced by escript::DataVector::copyFromArrayToOffset(), escript::DataExpanded::copyToDataPoint(), and escript::Data::setValueOfDataPointToArray().
const DataTypes::ShapeType & escript::WrappedArray::getShape | ( | ) | const [inline] |
double escript::WrappedArray::getElt | ( | ) | const [inline] |
double escript::WrappedArray::getElt | ( | unsigned int | i | ) | const [inline] |
References obj.
double escript::WrappedArray::getElt | ( | unsigned int | i, | |
unsigned int | j | |||
) | const [inline] |
References obj.
double escript::WrappedArray::getElt | ( | unsigned int | i, | |
unsigned int | j, | |||
unsigned int | k | |||
) | const [inline] |
References obj.
double escript::WrappedArray::getElt | ( | unsigned int | i, | |
unsigned int | j, | |||
unsigned int | k, | |||
unsigned int | m | |||
) | const [inline] |
References obj.
const boost::python::object& escript::WrappedArray::obj [private] |
Referenced by getElt(), and WrappedArray().
int escript::WrappedArray::rank [private] |
Referenced by getRank(), and WrappedArray().
Referenced by getShape(), and WrappedArray().
double escript::WrappedArray::m_scalar [private] |
Referenced by getElt(), and WrappedArray().