DataFactory.h File Reference
`#include "system_dep.h"`
`#include "AbstractDomain.h"`
`#include "FunctionSpace.h"`
`#include "Data.h"`
`#include <boost/python/object.hpp>`

Go to the source code of this file.

## Namespaces

| escript

## Functions

Data | escript::Scalar (double value, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| A collection of factory functions for creating Data objects which contain data points of various shapes. More...
Data | escript::Scalar (DataTypes::cplx_t value, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Return a Data object containing scalar data-points. ie: rank 0 data-points. More...
Data | escript::ScalarFromObj (boost::python::object o, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Python interface for the Scalar factory. More...
Data | escript::Vector (double value, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Return a Data object containing vector data-points. ie: rank 1 data-points. More...
Data | escript::VectorFromObj (boost::python::object o, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
Data | escript::Tensor (double value, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Return a Data object containing tensor datapoints. ie: rank 2 data-points. More...
Data | escript::TensorFromObj (boost::python::object o, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
Data | escript::Tensor3 (double value, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Return a Data object containing tensor3 datapoints. ie: rank 3 data-points. More...
Data | escript::Tensor3FromObj (boost::python::object o, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
Data | escript::Tensor4 (double value, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Return a Data object containing tensor4 datapoints. ie: rank 4 data-points. More...
Data | escript::Tensor4FromObj (boost::python::object o, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
Data | escript::load (const std::string fileName, const AbstractDomain &domain)
| reads Data on domain from file in netCDF format More...
bool | escript::loadConfigured ()
| returns true if the load funtion is configured. More...
Data | escript::convertToData (const boost::python::object &value, const FunctionSpace &what=FunctionSpace())
| Tries to convert value into a Data object on FunctionSpace what. If value is already a Data object, the object is returned if it is defined on what otherwise interpolated data of values are returned. If value is not a data object it is tried to generate the corresponding data object. escript::DataEmpty() is returned if value is identified as empty. More...