Changeset bdf8aa in git for modules


Ignore:
Timestamp:
Sep 21, 2005, 12:32:03 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c3bcc7235976093a4ccf1e409601e3d6ce8aba46
Parents:
44d4cc7e5ab9684fb52bb6c750bcf49db27e80bb
Message:
*bricken: support for poly from intvec


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

Legend:

Unmodified
Added
Removed
  • modules/python/poly_wrap.cc

    r44d4cc rbdf8aa  
    44#include "Poly.h"
    55#include "ring_wrap.h"
     6#include "intvec_wrap.h"
    67using boost::python::self;
    78boost::python::str Poly_as_str(const Poly& p)
     
    2223    .def(boost::python::init <int>())
    2324    .def(boost::python::init <Poly>())
    24     .def(boost::python::init <std::vector<int> >())
     25//    .def(boost::python::init <std::vector<int> >())
    2526    .def(boost::python::init <Number>())
     27    .def(boost::python::init <better_intvec> ())
    2628    .def("__str__", Poly_as_str)
    2729    .def("__iter__", boost::python::iterator<Poly>())
  • modules/python/polytester

    r44d4cc rbdf8aa  
    11ring r=0,(x,y,z),lp;
    22timer=1;
    3 python_module::python("from Singular import number,  polynomial
     3LIB("python_module.so");
     4Python_module::python("from Singular import number,  polynomial, intvec
     5iv=intvec()
     6iv.append(1)
     7iv.append(2)
     8iv.append(3)
     9print polynomial(iv)
    410zero=number(0)
    511one=number(1)
Note: See TracChangeset for help on using the changeset viewer.