- Timestamp:
- Sep 21, 2005, 12:32:03 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- c3bcc7235976093a4ccf1e409601e3d6ce8aba46
- Parents:
- 44d4cc7e5ab9684fb52bb6c750bcf49db27e80bb
- Location:
- modules/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/python/poly_wrap.cc
r44d4cc rbdf8aa 4 4 #include "Poly.h" 5 5 #include "ring_wrap.h" 6 #include "intvec_wrap.h" 6 7 using boost::python::self; 7 8 boost::python::str Poly_as_str(const Poly& p) … … 22 23 .def(boost::python::init <int>()) 23 24 .def(boost::python::init <Poly>()) 24 .def(boost::python::init <std::vector<int> >())25 // .def(boost::python::init <std::vector<int> >()) 25 26 .def(boost::python::init <Number>()) 27 .def(boost::python::init <better_intvec> ()) 26 28 .def("__str__", Poly_as_str) 27 29 .def("__iter__", boost::python::iterator<Poly>()) -
modules/python/polytester
r44d4cc rbdf8aa 1 1 ring r=0,(x,y,z),lp; 2 2 timer=1; 3 python_module::python("from Singular import number, polynomial 3 LIB("python_module.so"); 4 Python_module::python("from Singular import number, polynomial, intvec 5 iv=intvec() 6 iv.append(1) 7 iv.append(2) 8 iv.append(3) 9 print polynomial(iv) 4 10 zero=number(0) 5 11 one=number(1)
Note: See TracChangeset
for help on using the changeset viewer.