Changeset ec7d74 in git for modules/python


Ignore:
Timestamp:
Aug 17, 2005, 6:26:57 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
9ec8a15cdec78cf7a3e4d3e3874f760708ad714e
Parents:
042111144ff6e76ced3ec3f31ffa2b9d4882a3ad
Message:
*bricken: hard work


git-svn-id: file:///usr/local/Singular/svn/trunk@8524 2c84dea3-7e68-4137-9b89-c4e89433aadc
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:29 bricken Exp $
     1//$Id: wrapper.h,v 1.9 2005-08-17 16:26:57 bricken Exp $
    22#ifndef PYTHON_SINGULAR_WRAPPER_HEADER
    33#define PYTHON_SINGULAR_WRAPPER_HEADER
     
    1212#include "PowerSeries.h"
    1313using namespace boost::python;
    14 
     14Vector unitVector0(int i){
     15  return unitVector(i,currRing);
     16}
    1517static boost::python::object Number_as_str(Number n)
    1618{
     
    9799    .def(self*=Number())
    98100    .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&>())
    105103    .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);
    107108  //    .def(self+=self)
    108109   
Note: See TracChangeset for help on using the changeset viewer.