Is it possible to subclass a sage class?

asked 2016-09-28 01:15:25 -0500

done_with_fish gravatar image

I want to subclass the sage Polyhedra class.

Basically, I have a bunch of functions I have written for polyhedra and I want to organize them in a class. Is this possible in sage?

edit retag flag offensive close merge delete

Comments

Does this help? https://docs.python.org/2/tutorial/cl... Though if it's a Cython class it might be slightly more complicated.

kcrisman gravatar imagekcrisman ( 2016-09-28 05:31:29 -0500 )edit
1

It's not a Cython class: Polyhedra_base is defined in the Python file src/sage/geometry/polyhedron/parent.py.

John Palmieri gravatar imageJohn Palmieri ( 2016-09-28 13:05:46 -0500 )edit