#8094: shortcuts properties for matrix transpose, complex conjugate, conjugate
transpose, and inverse
------------------------------+---------------------------------------------
Reporter: schilly | Owner: was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7.2
Component: linear algebra | Keywords:
Work_issues: | Upstream: N/A
Reviewer: Rob Beezer | Author: Harald Schilly, Jason Grout,
Martin Raum
Merged: | Dependencies:
------------------------------+---------------------------------------------
Changes (by newvalueoldvalue):
* reviewer: => Rob Beezer
* author: => Harald Schilly, Jason Grout, Martin Raum
Old description:
> The aim is to enhance the `/sage/matrix/matrix2.pyx` file with cython's
> properties to call `self.transpose()` and other methods more quickly. A
> shortcut like` self.T` is resolved to `self.transpose()`. Shortcuts
> should be similar to other environments like `numpy`. Shortcuts added
> are:
>
> * m.T -> m.transpose()
> * m.I -> m.inverse()
> * m.C -> m.conjugate()
> * m.H -> m.conjugate().transpose()
>
> Notes: [http://docs.python.org/reference/datamodel.html#customizing-
> attribute-access python data model],
> [http://docs.cython.org/src/userguide/extension_types.html#properties
> Cython's properties]
New description:
The aim is to enhance the `/sage/matrix/matrix2.pyx` file with cython's
properties to call `self.transpose()` and other methods more quickly. A
shortcut like` self.T` is resolved to `self.transpose()`. Shortcuts should
be similar to other environments like `numpy`. Shortcuts added are:
* m.T -> m.transpose()
* m.I -> m.inverse()
* m.C -> m.conjugate()
* m.H -> m.conjugate().transpose()
Notes: [http://docs.python.org/reference/datamodel.html#customizing-
attribute-access python data model],
[http://docs.cython.org/src/userguide/extension_types.html#properties
Cython's properties]
'''Apply''':
1. [attachment:8094-shortcut-matrix-transpose.patch]
1. [attachment:trac-8094_matrix_shortcut_docs_reviewer2.patch]
1. [attachment:trac_8094-matrix-properties-more-documentation.patch]
--
Comment:
These are some of the earliest entries in the reference manual for
{{{sage/matrix/matrix2.pyx}}}, so I think the documentation should include
some examples, especially since the syntax is different (no parentheses).
However, INPUT and OUTPUT blocks feel like make-work, so I have not
included that.
I can give a positive review to everything up to my latest patch. If
somebody would review my (documentation-only) changes, this could be done.
Rob
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8094#comment:19>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.