Skip to content

Add offset argument to diagonal method #39963

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

Merged
merged 10 commits into from
Apr 29, 2025
Merged

Conversation

HenryWu2101
Copy link
Contributor

@HenryWu2101 HenryWu2101 commented Apr 18, 2025

#13564
This solves the mentioned issue, adding an offset argument that enables the user to get any diagonal parallel to the main diagonal. As mentioned in the documentation, off = 0 is default main diag, off > 0 is for above main, off < 0 for below.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

cc @tscrim

Copy link

github-actions bot commented Apr 18, 2025

Documentation preview for this PR (built with commit 6b46019; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@HenryWu2101
Copy link
Contributor Author

The reviewed changes are resolved

@HenryWu2101 HenryWu2101 requested a review from user202729 April 20, 2025 03:59
@dcoudert dcoudert mentioned this pull request Apr 20, 2025
5 tasks
@HenryWu2101 HenryWu2101 requested a review from dcoudert April 20, 2025 18:20
@HenryWu2101
Copy link
Contributor Author

HenryWu2101 commented Apr 21, 2025

@dcoudert Hi I've followed on the reviewed changes accordingly. Please let me know if anything else need to be changed

@HenryWu2101 HenryWu2101 requested a review from dcoudert April 21, 2025 18:25
Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups, a minor remark. Sorry.

@HenryWu2101 HenryWu2101 requested a review from dcoudert April 22, 2025 11:38
Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vbraun vbraun merged commit f0e4103 into sagemath:develop Apr 29, 2025
18 of 23 checks passed
@HenryWu2101 HenryWu2101 deleted the map branch April 30, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants