/[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 699 by gross, Fri Mar 31 06:27:56 2006 UTC revision 876 by ksteube, Thu Oct 19 03:50:23 2006 UTC
# Line 19  Line 19 
19  #include "AbstractDomain.h"  #include "AbstractDomain.h"
20  #include "Utils.h"  #include "Utils.h"
21  #include "AbstractSystemMatrix.h"  #include "AbstractSystemMatrix.h"
22    #include "DataVector.h"
23    
24  #include "esysUtils/esysExceptionTranslator.h"  #include "esysUtils/esysExceptionTranslator.h"
25    
# Line 69  BOOST_PYTHON_MODULE(escriptcpp) Line 70  BOOST_PYTHON_MODULE(escriptcpp)
70  {  {
71    def("setNumberOfThreads",escript::setNumberOfThreads);    def("setNumberOfThreads",escript::setNumberOfThreads);
72    def("getNumberOfThreads",escript::getNumberOfThreads);    def("getNumberOfThreads",escript::getNumberOfThreads);
73      def("releaseUnusedMemory",escript::releaseUnusedMemory);
74    
75    
76    //    //
77    // Interface for AbstractDomain    // Interface for AbstractDomain
# Line 97  BOOST_PYTHON_MODULE(escriptcpp) Line 100  BOOST_PYTHON_MODULE(escriptcpp)
100       .def("getX",&escript::FunctionSpace::getX)       .def("getX",&escript::FunctionSpace::getX)
101       .def("getNormal",&escript::FunctionSpace::getNormal)       .def("getNormal",&escript::FunctionSpace::getNormal)
102       .def("getSize",&escript::FunctionSpace::getSize)       .def("getSize",&escript::FunctionSpace::getSize)
103         .def("setTags",&escript::FunctionSpace::setTags)
104       .def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)       .def("getTagFromDataPointNo",&escript::FunctionSpace::getTagFromDataPointNo)
105       .def("__str__",&escript::FunctionSpace::toString)       .def("__str__",&escript::FunctionSpace::toString)
106       .def(self == self)       .def(self == self)
# Line 117  BOOST_PYTHON_MODULE(escriptcpp) Line 121  BOOST_PYTHON_MODULE(escriptcpp)
121      .def("getDomain",&escript::Data::getDomain,return_internal_reference<>())      .def("getDomain",&escript::Data::getDomain,return_internal_reference<>())
122      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_internal_reference<>())      .def("getFunctionSpace",&escript::Data::getFunctionSpace,return_internal_reference<>())
123      .def("isEmpty",&escript::Data::isEmpty)      .def("isEmpty",&escript::Data::isEmpty)
124        .def("isProtected",&escript::Data::isProtected)
125        .def("setProtection",&escript::Data::setProtection)
126      .def("getShape",&escript::Data::getShapeTuple)      .def("getShape",&escript::Data::getShapeTuple)
127      .def("getRank",&escript::Data::getDataPointRank)      .def("getRank",&escript::Data::getDataPointRank)
128      .def("copyWithMask",&escript::Data::copyWithMask)      .def("copyWithMask",&escript::Data::copyWithMask)
# Line 151  BOOST_PYTHON_MODULE(escriptcpp) Line 157  BOOST_PYTHON_MODULE(escriptcpp)
157      .def("_whereNonPositive",&escript::Data::whereNonPositive)      .def("_whereNonPositive",&escript::Data::whereNonPositive)
158      .def("_whereZero",&escript::Data::whereZero,(arg("tol")=0.0))      .def("_whereZero",&escript::Data::whereZero,(arg("tol")=0.0))
159      .def("_whereNonZero",&escript::Data::whereNonZero,(arg("tol")=0.0))      .def("_whereNonZero",&escript::Data::whereNonZero,(arg("tol")=0.0))
160        .def("_erf",&escript::Data::erf)
161      .def("_sin",&escript::Data::sin)      .def("_sin",&escript::Data::sin)
162      .def("_cos",&escript::Data::cos)      .def("_cos",&escript::Data::cos)
163      .def("_tan",&escript::Data::tan)      .def("_tan",&escript::Data::tan)
# Line 168  BOOST_PYTHON_MODULE(escriptcpp) Line 175  BOOST_PYTHON_MODULE(escriptcpp)
175      .def("_log10",&escript::Data::log10)      .def("_log10",&escript::Data::log10)
176      .def("_log",&escript::Data::log)      .def("_log",&escript::Data::log)
177      .def("_sign",&escript::Data::sign)      .def("_sign",&escript::Data::sign)
178        .def("_symmetric",&escript::Data::symmetric)
179        .def("_nonsymmetric",&escript::Data::nonsymmetric)
180        .def("_trace",&escript::Data::trace)
181        .def("_swap_axes",&escript::Data::swapaxes)
182      .def("_eigenvalues",&escript::Data::eigenvalues)      .def("_eigenvalues",&escript::Data::eigenvalues)
183      .def("_eigenvalues_and_eigenvectors",&escript::Data::eigenvalues_and_eigenvectors,(arg("tol")=1.e-13))      .def("_eigenvalues_and_eigenvectors",&escript::Data::eigenvalues_and_eigenvectors,(arg("tol")=1.e-13))
184      // functions returning a single real number:      // functions returning a single real number:
# Line 257  BOOST_PYTHON_MODULE(escriptcpp) Line 268  BOOST_PYTHON_MODULE(escriptcpp)
268         arg("expanded")=false));         arg("expanded")=false));
269    
270    //    //
271      // Binary operators
272      //
273      def("C_GeneralTensorProduct",escript::C_GeneralTensorProduct,
274          (arg("arg0")=escript::Data(),
275           arg("arg1")=escript::Data(),
276           arg("axis_offset")=0,
277           arg("transpose")=0));
278    
279      //
280    // Interface for AbstractSystemMatrix    // Interface for AbstractSystemMatrix
281    //    //
282    class_<escript::AbstractSystemMatrix>("Operator",init<>())    class_<escript::AbstractSystemMatrix>("Operator",init<>())

Legend:
Removed from v.699  
changed lines
  Added in v.876

  ViewVC Help
Powered by ViewVC 1.1.26