David Joyner wrote:
By extend a Sage class it seems you mean add a method to a Sage class.
You want to know how to add a method to the class
matrix_complex_double_dense.pyx
at
http://www.sagemath.org/hg/sage-main/file/8b1d19463fc4/sage/matrix/matrix_complex_double_dense.pyx
?
(If you
Simon Beaumont wrote:
What is the recommended way to extend sage classes? - I want to add
some functionality to the complex matrix class - specifically tests
for: is_symmetric, is_hermitian, is_unitary etc... you get the idea.
As noted in other replies, you could add these methods to either
By extend a Sage class it seems you mean add a method to a Sage class.
You want to know how to add a method to the class
matrix_complex_double_dense.pyx
at
http://www.sagemath.org/hg/sage-main/file/8b1d19463fc4/sage/matrix/matrix_complex_double_dense.pyx
?
(If you want to license it under the
Thanks David,
Yes extend by inheriting (and adding methods using the functionality
of the parent) is what I meant.
I think that gives me enough to get the job done... I'm sure the
is_symmetric method is usable as is - I just didn't spot it.
Cheers,
Simon
On Nov 30, 1:55 pm, David Joyner