Changeset ec7d74 in git for modules/python
- Timestamp:
- Aug 17, 2005, 6:26:57 PM (19 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
- Children:
- 9ec8a15cdec78cf7a3e4d3e3874f760708ad714e
- Parents:
- 042111144ff6e76ced3ec3f31ffa2b9d4882a3ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/python/wrapper.h
r042111 rec7d74 1 //$Id: wrapper.h,v 1. 8 2005-08-17 13:35:29bricken Exp $1 //$Id: wrapper.h,v 1.9 2005-08-17 16:26:57 bricken Exp $ 2 2 #ifndef PYTHON_SINGULAR_WRAPPER_HEADER 3 3 #define PYTHON_SINGULAR_WRAPPER_HEADER … … 12 12 #include "PowerSeries.h" 13 13 using namespace boost::python; 14 14 Vector unitVector0(int i){ 15 return unitVector(i,currRing); 16 } 15 17 static boost::python::object Number_as_str(Number n) 16 18 { … … 97 99 .def(self*=Number()) 98 100 .def(Number() * self); 99 boost::python::class_<PowerSeries>("power_series") 100 101 .def(boost::python::init <const Poly&,const Poly&>()) 102 103 104 101 boost::python::class_<PowerSeries>("power_series") 102 .def(boost::python::init <const PowerSeries::numerator_type &,const PowerSeries::denominator_type&>()) 105 103 .def("__iter__", boost::python::iterator<PowerSeries>()); 106 104 boost::python::class_<VectorPowerSeries>("vector_power_series") 105 .def(boost::python::init <const VectorPowerSeries::numerator_type&,const VectorPowerSeries::denominator_type &>()) 106 .def("__iter__", boost::python::iterator<VectorPowerSeries>()); 107 def("gen",unitVector0); 107 108 // .def(self+=self) 108 109
Note: See TracChangeset
for help on using the changeset viewer.