/[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 119 by jgs, Tue Apr 12 04:45:05 2005 UTC revision 121 by jgs, Fri May 6 04:26:16 2005 UTC
# Line 31  Line 31 
31                                                                                                                                                                                                                                                                                        
32  using namespace boost::python;  using namespace boost::python;
33    
34  /**  /*! \mainpage Esys Documentation
35     @memo   *
36     escript is the python module that contains the interfaces   * \version 1.0.0
37     to the C++ side of escript.   *
38     * - \ref escript
39     @version 1.0.0   *
40     * - \ref esys_exception "Esys Exception"
41     @doc   *
42     * - \ref finley
43     Class Description:   *
44     Data   */
45    
46     Class Limitations:  /*! \page escript Escript
47     None   * Escript is the python module that contains the interfaces
48     * to the C++ side of escript.
49     Class Conditions of Use:   *
50     None   * \version 1.0.0
51     *
52     Throws:   * \section class_desc Class Description:
53     None   * Data
54     *
55  */   * \section class_limits Class Limitations:
56     * None
57     *
58     * \section class_conds Class Conditions of Use:
59     * None
60     *
61     * \section class_throws Throws:
62     * None
63     *
64     */
65    
66  BOOST_PYTHON_MODULE(escriptcpp)  BOOST_PYTHON_MODULE(escriptcpp)
67  {  {
# Line 122  BOOST_PYTHON_MODULE(escriptcpp) Line 131  BOOST_PYTHON_MODULE(escriptcpp)
131      .def("grad",&escript::Data::gradOn)      .def("grad",&escript::Data::gradOn)
132      .def("grad",&escript::Data::grad)      .def("grad",&escript::Data::grad)
133      .def("convertToNumArray",&escript::Data::convertToNumArray)      .def("convertToNumArray",&escript::Data::convertToNumArray)
134        .def("convertToNumArrayFromSampleNo",&escript::Data::convertToNumArrayFromSampleNo)
135        .def("convertToNumArrayFromDPNo",&escript::Data::convertToNumArrayFromDPNo)
136      .def("archiveData",&escript::Data::archiveData)      .def("archiveData",&escript::Data::archiveData)
137      .def("extractData",&escript::Data::extractData)      .def("extractData",&escript::Data::extractData)
138      .def("integrate",&escript::Data::integrate)      .def("integrate",&escript::Data::integrate)
# Line 137  BOOST_PYTHON_MODULE(escriptcpp) Line 148  BOOST_PYTHON_MODULE(escriptcpp)
148      .def("sup",&escript::Data::sup)      .def("sup",&escript::Data::sup)
149      .def("inf",&escript::Data::inf)      .def("inf",&escript::Data::inf)
150      .def("__abs__",&escript::Data::abs)      .def("__abs__",&escript::Data::abs)
151        .def("abs",&escript::Data::abs)
152      .def("exp",&escript::Data::exp)      .def("exp",&escript::Data::exp)
153      .def("sqrt",&escript::Data::sqrt)      .def("sqrt",&escript::Data::sqrt)
154      .def("maxval",&escript::Data::maxval)      .def("maxval",&escript::Data::maxval)
155      .def("minval",&escript::Data::minval)      .def("minval",&escript::Data::minval)
156        .def("mindp",&escript::Data::mindp)
157      .def("length",&escript::Data::length)      .def("length",&escript::Data::length)
158      .def("sign",&escript::Data::sign)      .def("sign",&escript::Data::sign)
159      // following implements the python "-" negation operator      // following implements the python "-" negation operator
160      .def("__neg__",&escript::Data::neg)      .def("__neg__",&escript::Data::neg)
161        .def("neg",&escript::Data::neg)
162      // following implements the python "+" identity operator      // following implements the python "+" identity operator
163      .def("__pos__",&escript::Data::pos)      .def("__pos__",&escript::Data::pos)
164        .def("pos",&escript::Data::pos)
165      // following two functions implement the python [] operator      // following two functions implement the python [] operator
166      .def("__getitem__",&escript::Data::getItem)      .def("__getitem__",&escript::Data::getItem)
167      .def("__setitem__",&escript::Data::setItemO)      .def("__setitem__",&escript::Data::setItemO)

Legend:
Removed from v.119  
changed lines
  Added in v.121

  ViewVC Help
Powered by ViewVC 1.1.26