Changeset 650d14 in git for modules


Ignore:
Timestamp:
Aug 17, 2005, 11:41:49 AM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
c1e4cd403513c2cfaac94cde3319fe5d54a930de
Parents:
4e24862c49981184b83d962341b9deb433825ae6
Message:
*bricken: vector temporarily disabled


git-svn-id: file:///usr/local/Singular/svn/trunk@8516 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
modules/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/python/polytester

    r4e2486 r650d14  
    1818print z+xy
    1919print z,xy
    20 #print xy+xy*xy
     20print xy*xy
    2121print xy
    22 for t in (xy*xy+xy+polynomial(1)):
     22for t in ((xy+number(1))*(xy+number(-1))):
    2323  print t
    2424");
  • modules/python/wrapper.h

    r4e2486 r650d14  
    1 //$Id: wrapper.h,v 1.5 2005-08-17 09:14:21 bricken Exp $
     1//$Id: wrapper.h,v 1.6 2005-08-17 09:41:49 bricken Exp $
    22#ifndef PYTHON_SINGULAR_WRAPPER_HEADER
    33#define PYTHON_SINGULAR_WRAPPER_HEADER
     
    8484    .def(self*=Number())
    8585    .def(self*self);
    86     boost::python::class_<PolyBase<POLY_VARIANT_MODUL> >("vector")
     86    /* boost::python::class_<PolyBase<POLY_VARIANT_MODUL> >("vector")
    8787   
    8888    .def(boost::python::init <>())
     
    9191    .def("__str__", Poly_as_str)
    9292    .def("__iter__", boost::python::iterator<PolyBase<POLY_VARIANT_MODUL> >())
    93     //read monomials (only) from string
    94     //.def(boost::python::init <const char* >())
    95    
    96       //.def("__str__", as_str)
    97       //.def(-self)
    98 
     93   
    9994    .def(self+=self)
    100       //    .def(self-=self)
    101       //.def(self/=self)
    102       //.def(self==self)
     95   
    10396    .def(self+self)
    10497    .def(self*=Number())
    10598      .def(self*Number());
    106       //.def(self+Number())
    107       //.def(self+=Number())
    108       //.def(self*=Number());
    109 
    110   //boost::python::class_<TermReference>("termreference");
    111     //.def(self/self)
    112       //.def(self-self)
    113       //.def(int()==self)
    114       //.def(int()+self)
    115       //.def(int()*self)
    116       //.def(int()/self)
    117       //.def(int()-self)
    118       //.def(self==int())
    119       //.def(self+int())
    120     /* .def(self*int()) */
    121 /*     .def(self/int()) */
    122 /*     .def(self-int()) */
    123 /*     .def(self*=int()) */
    124 /*     .def(self+=int()) */
    125 /*     .def(self-=int()) */
    126 /*     .def(self/=int()); */
     99    */
    127100
    128101}
Note: See TracChangeset for help on using the changeset viewer.