DataFactory.cpp File Reference
`#include "DataFactory.h"`
`#include <boost/python/extract.hpp>`
`#include <boost/scoped_array.hpp>`
`#include <exception>`
`#include <iostream>`
`#include <fstream>`

## 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::ComplexScalar (double value, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Return a Complex Data object containing scalar data-points. ie: rank 0 data-points. More...
Data | escript::ComplexScalar (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::ComplexScalarFromObj (boost::python::object o, const FunctionSpace &what=FunctionSpace(), bool expanded=false)
| Python interface for the Complex 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::ComplexVector (double value, const FunctionSpace &what, bool expanded)
Data | escript::VectorFromObj (bp::object o, const FunctionSpace &what, bool expanded)
Data | escript::ComplexVectorFromObj (bp::object o, const FunctionSpace &what, bool expanded)
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::ComplexTensor (double value, const FunctionSpace &what, bool expanded)
Data | escript::TensorC (DataTypes::cplx_t value, const FunctionSpace &what, bool expanded)
Data | escript::ComplexTensorC (DataTypes::cplx_t value, const FunctionSpace &what, bool expanded)
Data | escript::TensorFromObj (bp::object o, const FunctionSpace &what, bool expanded)
Data | escript::ComplexTensorFromObj (bp::object o, const FunctionSpace &what, bool expanded)
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::ComplexTensor3 (double value, const FunctionSpace &what, bool expanded)
Data | escript::Tensor3C (DataTypes::cplx_t value, const FunctionSpace &what, bool expanded)
Data | escript::ComplexTensor3C (DataTypes::cplx_t value, const FunctionSpace &what, bool expanded)
Data | escript::Tensor3FromObj (bp::object o, const FunctionSpace &what, bool expanded)
Data | escript::ComplexTensor3FromObj (bp::object o, const FunctionSpace &what, bool expanded)
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::ComplexTensor4 (double value, const FunctionSpace &what, bool expanded)
Data | escript::Tensor4C (DataTypes::cplx_t value, const FunctionSpace &what, bool expanded)
Data | escript::ComplexTensor4C (DataTypes::cplx_t value, const FunctionSpace &what, bool expanded)
Data | escript::Tensor4FromObj (bp::object o, const FunctionSpace &what, bool expanded)
Data | escript::ComplexTensor4FromObj (bp::object o, const FunctionSpace &what, bool expanded)
Data | escript::ComplexData (boost::python::object o, const FunctionSpace &what, bool expanded)
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 bp::object &value, const FunctionSpace &what)