Ask Your Question
1

Deriving from Matrix class

asked 12 years ago

SLOtoSF gravatar image

updated 12 years ago

Sage doesn't recognize Matrix_generic_dense. How can I create a Matrix class?

Say I want to create a class of generic matrices which I could tack on various other attributes to. I am hoping for something like:

class MatrixNew(Matrix_generic_dense):
Preview: (hide)

Comments

It probably needs to be imported from the relevant place? This is a very vague question as it stands :(

kcrisman gravatar imagekcrisman ( 12 years ago )

Sorry, let me rephrase.

SLOtoSF gravatar imageSLOtoSF ( 12 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

Jason Grout gravatar image

Look in the devel/sage/sage/matrix/ directory for examples. matrix_mpolynomial_dense.pyx looks like a pretty minimal example. matrix_symbolic_dense.pyx and matrix_double_dense.pyx might be good examples too.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 235 times

Last updated: Oct 29 '12