New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
method to reverse row and column orders of a matrix #23050
Comments
Commit: |
Branch: u/vdelecroix/23050 |
New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:2
salut Vincent, i saw your cool function, maybe you can paste this too or similar:
|
comment:3
Replying to @mforets:
good idea. |
comment:4
Looks and works nice. Thank you! Just two minor comments:
|
comment:5
What do you think of calling the method simply |
comment:6
If someone implements |
This comment has been minimized.
This comment has been minimized.
comment:7
This method already exists and called |
comment:8
Sorry, it is different: transpose and antitranspose does inverse rows <-> columns. They are symmetries with respect to diagonals. However, both transpose and antitranspose return a different matrix. It would be weird to have a different behavior for reverse. I propose to have
|
comment:9
Note that in numpy, there is method to do reflection that is called flip. What I am trying to achieve with this ticket corresponds to
And numpy provides shortcuts |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:11
Needs review again. Transpose and antitranspose are a bit different since the matrix space changes. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:14
Still missing a period at the end:
|
comment:15
You may fold this long line
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
done |
Reviewer: Kwankyu Lee |
Changed branch from u/vdelecroix/23050 to |
This ticket implements a method
reverse_rows_and_columns
Needed in #22841.
Note: in
numpy
they rather useflip
(that return a copy) and Python list usesreverse
CC: @kwankyu
Component: linear algebra
Author: Vincent Delecroix
Branch/Commit:
e7d56d0
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/23050
The text was updated successfully, but these errors were encountered: