/[escript]/trunk/escript/src/escriptcpp.cpp
ViewVC logotype

Diff of /trunk/escript/src/escriptcpp.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2204 by caltinay, Fri Jan 9 01:33:39 2009 UTC revision 2271 by jfenwick, Mon Feb 16 05:08:29 2009 UTC
# Line 156  BOOST_PYTHON_MODULE(escriptcpp) Line 156  BOOST_PYTHON_MODULE(escriptcpp)
156    //    //
157    class_<escript::Data>("Data","Represents a collection of datapoints. It is used to store the values of a function. For more details please consult the c++ class documentation.",init<>() )    class_<escript::Data>("Data","Represents a collection of datapoints. It is used to store the values of a function. For more details please consult the c++ class documentation.",init<>() )
158      // various constructors for Data objects      // various constructors for Data objects
159      .def(init<const numeric::array&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))  //    .def(init<const numeric::array&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))
160      .def(init<const object&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))      .def(init<const object&, optional<const escript::FunctionSpace&, bool> >(args("value","what","expand")))
161      .def(init<const double, const tuple&, optional<const escript::FunctionSpace&, bool> >(args("value","shape","what","expand")))      .def(init<const double, const tuple&, optional<const escript::FunctionSpace&, bool> >(args("value","shape","what","expand")))
162      .def(init<const escript::Data&, const escript::FunctionSpace&>(args("value","what")))      .def(init<const escript::Data&, const escript::FunctionSpace&>(args("value","what")))
# Line 192  BOOST_PYTHON_MODULE(escriptcpp) Line 192  BOOST_PYTHON_MODULE(escriptcpp)
192      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToArray)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPointToArray)
193      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPoint)      .def("setValueOfDataPoint",&escript::Data::setValueOfDataPoint)
194      .def("getValueOfDataPoint",&escript::Data::getValueOfDataPoint)      .def("getValueOfDataPoint",&escript::Data::getValueOfDataPoint)
195        .def("getTupleForDataPoint",&escript::Data::getValueOfDataPointAsTuple)
196      .def("getValueOfGlobalDataPoint",&escript::Data::getValueOfGlobalDataPoint)      .def("getValueOfGlobalDataPoint",&escript::Data::getValueOfGlobalDataPoint)
197        .def("getTupleForGlobalDataPoint",&escript::Data::getValueOfGlobalDataPointAsTuple)
198      .def("setToZero",&escript::Data::setToZero)      .def("setToZero",&escript::Data::setToZero)
199      .def("interpolate",&escript::Data::interpolate)      .def("interpolate",&escript::Data::interpolate)
200      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)      .def("minGlobalDataPoint",&escript::Data::minGlobalDataPoint)
# Line 242  BOOST_PYTHON_MODULE(escriptcpp) Line 244  BOOST_PYTHON_MODULE(escriptcpp)
244      .def("_sup",&escript::Data::sup)      .def("_sup",&escript::Data::sup)
245      .def("_inf",&escript::Data::inf)      .def("_inf",&escript::Data::inf)
246      .def("_integrate",&escript::Data::integrate)      .def("_integrate",&escript::Data::integrate)
247        .def("_integrateToTuple",&escript::Data::integrateToTuple)
248    
249      // following implements the python abs operator      // following implements the python abs operator
250      .def("__abs__",&escript::Data::abs)      .def("__abs__",&escript::Data::abs)
# Line 370  BOOST_PYTHON_MODULE(escriptcpp) Line 373  BOOST_PYTHON_MODULE(escriptcpp)
373        (arg("sentinel")=0));        (arg("sentinel")=0));
374    def("listEscriptParams",escript::listEscriptParams);    def("listEscriptParams",escript::listEscriptParams);
375    
   
376    //    //
377    // Register esysExceptionTranslator    // Register esysExceptionTranslator
378    //    //

Legend:
Removed from v.2204  
changed lines
  Added in v.2271

  ViewVC Help
Powered by ViewVC 1.1.26