/[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 2628 by jfenwick, Tue Aug 25 03:50:00 2009 UTC revision 2635 by jfenwick, Thu Aug 27 04:54:41 2009 UTC
# Line 107  BOOST_PYTHON_MODULE(escriptcpp) Line 107  BOOST_PYTHON_MODULE(escriptcpp)
107  " value for arg1. The values are added up and the total value is returned.\n\n:rtype: int");  " value for arg1. The values are added up and the total value is returned.\n\n:rtype: int");
108    def("getMachinePrecision",escript::getMachinePrecision);    def("getMachinePrecision",escript::getMachinePrecision);
109    def("getMaxFloat",escript::getMaxFloat);    def("getMaxFloat",escript::getMaxFloat);
110    
111    
112      def("_saveDataCSV",escript::saveDataCSV, (args("filename","arg","sep","csep"), arg("append")=false));
113    
114    
115    //    //
116    // Interface for AbstractDomain    // Interface for AbstractDomain
117    //    //
# Line 309  args("table","Amin","Astep","undef", "B" Line 314  args("table","Amin","Astep","undef", "B"
314      .def("_sup",&escript::Data::sup,":return: the maximum value over all data points.\n:rtype: float\n:note: If the ``Data`` contains no values a large negative value will be returned instead.")      .def("_sup",&escript::Data::sup,":return: the maximum value over all data points.\n:rtype: float\n:note: If the ``Data`` contains no values a large negative value will be returned instead.")
315      .def("_inf",&escript::Data::inf,":return: minimum value over all components and all data points\n:rtype: float\n:note: If the ``Data`` contains no values a large positive value will be returned instead.")      .def("_inf",&escript::Data::inf,":return: minimum value over all components and all data points\n:rtype: float\n:note: If the ``Data`` contains no values a large positive value will be returned instead.")
316      .def("_integrateToTuple",&escript::Data::integrateToTuple,":return: Calculate the integral over the function space domain as a python tuple\n:rtype: tuple")      .def("_integrateToTuple",&escript::Data::integrateToTuple,":return: Calculate the integral over the function space domain as a python tuple\n:rtype: tuple")
   
317      // following implements the python abs operator      // following implements the python abs operator
318      .def("__abs__",&escript::Data::abs,":return: absolute value\n\n:rtype: `Data`")      .def("__abs__",&escript::Data::abs,":return: absolute value\n\n:rtype: `Data`")
319      // following implements the python "-" negation operator      // following implements the python "-" negation operator
# Line 354  args("table","Amin","Astep","undef", "B" Line 358  args("table","Amin","Astep","undef", "B"
358      // the boost code. This calls operator << for Data.      // the boost code. This calls operator << for Data.
359      .def(self_ns::str(self));      .def(self_ns::str(self));
360    
361    
362    //    //
363    // Factory methods for function space    // Factory methods for function space
364    //    //
# Line 381  args("table","Amin","Astep","undef", "B" Line 386  args("table","Amin","Astep","undef", "B"
386    def("ReducedSolution",escript::reducedSolution, args("domain"), ":rtype: `FunctionSpace`");    def("ReducedSolution",escript::reducedSolution, args("domain"), ":rtype: `FunctionSpace`");
387    def("DiracDeltaFunction",escript::diracDeltaFunction, args("domain"), ":rtype: `FunctionSpace`");    def("DiracDeltaFunction",escript::diracDeltaFunction, args("domain"), ":rtype: `FunctionSpace`");
388    
389    
390    
391    
392    
393    //    //
394    // Factory methods for Data    // Factory methods for Data
395    //    //

Legend:
Removed from v.2628  
changed lines
  Added in v.2635

  ViewVC Help
Powered by ViewVC 1.1.26