Re: [sage-devel] Problems with symbolic vector arithmetic

2011-06-26 Thread David Roe
The implementation in sage/modules/vector_symbolic_dense just inherits from FreeModuleElement_generic_dense, without overriding any methods like _add_ or _new_c. In particular, the arithmetic operations in FreeModuleElement_generic_dense hard-code the class, so that arithmetic always creates a new

[sage-devel] Problems with symbolic vector arithmetic

2011-06-25 Thread Joris Vankerschaver
Dear all, I'm playing around with #11335 which was included in Sage 4.7.1.alpha3. In this patch, I added a symbolic vector class, with the aim of providing simplification methods that act elementwise on symbolic vectors. The symbolic vector class derives from sage.modules.free_module_element.Fre