#8094: shortcuts properties for matrix transpose, complex conjugate, conjugate
transpose, and inverse
---------------------------------------+------------------------------------
Reporter: schilly | Owner: was
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-4.7.2
Component: linear algebra | Keywords: sd32
Work_issues: | Upstream: N/A
Reviewer: Rob Beezer, Martin Raum | Author: Harald Schilly, Jason
Grout, Martin Raum
Merged: | Dependencies:
---------------------------------------+------------------------------------
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]
>
> ----
>
> '''Apply''':
>
> 1. [attachment:8094-shortcut-matrix-transpose-v2.patch]
> 1. [attachment:trac-8094_matrix_shortcut_docs_reviewer2.patch]
> 1. [attachment:trac_8094-matrix-properties-more-documentation.patch]
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-v2-rebased_on_4.7.2.alpha3.patch]
1. [attachment:trac-8094_matrix_shortcut_docs_reviewer2.patch]
1. [attachment:trac_8094-matrix-properties-more-documentation-
rebased_on_4.7.2.alpha3.patch]
--
Comment(by leif):
Attached rebased versions of two patches because of fuzz 2.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8094#comment:29>
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.