|
escript
Revision_
|
#include <WrappedArray.h>
Public Member Functions | |
| WrappedArray (const boost::python::object &obj_in) | |
| ~WrappedArray () | |
| 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 |
| void | convertArray () const |
Private Member Functions | |
| template<typename T > | |
| void | convertNumpyArray (const T *array, const std::vector< int > &strides) const |
Private Attributes | |
| const boost::python::object & | obj |
| int | rank |
| escript::DataTypes::ShapeType | shape |
| double | m_scalar |
| double * | dat |
| WrappedArray::WrappedArray | ( | const boost::python::object & | obj_in | ) |
References dat.
| void WrappedArray::convertArray | ( | ) | const |
References dat, getElt(), escript::DataTypes::getRelIndex(), escript::DataTypes::noValues(), rank, and shape.
Referenced by escript::Data::interpolateFromTable1D(), escript::Data::interpolateFromTable2D(), escript::Data::interpolateFromTable3D(), escript::Data::nonuniforminterp(), and escript::Data::nonuniformslope().
| void WrappedArray::convertNumpyArray | ( | const T * | array, |
| const std::vector< int > & | strides | ||
| ) | const [private] |
References dat, escript::DataTypes::getRelIndex(), escript::DataTypes::noValues(), rank, and shape.
| double escript::WrappedArray::getElt | ( | ) | const [inline] |
| double escript::WrappedArray::getElt | ( | unsigned int | i | ) | const [inline] |
| double escript::WrappedArray::getElt | ( | unsigned int | i, |
| unsigned int | j | ||
| ) | const [inline] |
References dat, escript::DataTypes::getRelIndex(), obj, and shape.
| double escript::WrappedArray::getElt | ( | unsigned int | i, |
| unsigned int | j, | ||
| unsigned int | k | ||
| ) | const [inline] |
References dat, escript::DataTypes::getRelIndex(), obj, and shape.
| double escript::WrappedArray::getElt | ( | unsigned int | i, |
| unsigned int | j, | ||
| unsigned int | k, | ||
| unsigned int | m | ||
| ) | const [inline] |
References dat, escript::DataTypes::getRelIndex(), obj, and shape.
| unsigned int escript::WrappedArray::getRank | ( | ) | const [inline] |
References rank.
Referenced by escript::DataVector::copyFromArrayToOffset(), escript::DataExpanded::copyToDataPoint(), escript::Data::interpolateFromTable1D(), escript::Data::interpolateFromTable2D(), escript::Data::interpolateFromTable3D(), escript::Data::nonuniforminterp(), escript::Data::nonuniformslope(), and escript::Data::setValueOfDataPointToArray().
| const DataTypes::ShapeType & escript::WrappedArray::getShape | ( | ) | const [inline] |
References shape.
Referenced by escript::DataExpanded::copy(), escript::DataVector::copyFromArray(), escript::DataVector::copyFromArrayToOffset(), escript::Data::interpolateFromTable1D(), escript::Data::interpolateFromTable2D(), escript::Data::interpolateFromTable3D(), escript::Data::nonuniforminterp(), escript::Data::nonuniformslope(), escript::Data::setTaggedValue(), and escript::Data::setValueOfDataPointToArray().
double* escript::WrappedArray::dat [mutable, private] |
Referenced by convertArray(), convertNumpyArray(), getElt(), WrappedArray(), and ~WrappedArray().
double escript::WrappedArray::m_scalar [private] |
Referenced by getElt(), and WrappedArray().
const boost::python::object& escript::WrappedArray::obj [private] |
Referenced by getElt().
int escript::WrappedArray::rank [private] |
Referenced by convertArray(), convertNumpyArray(), getRank(), and WrappedArray().
Referenced by convertArray(), convertNumpyArray(), getElt(), getShape(), and WrappedArray().
1.7.6.1