Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix infinite recursion and off-by-one error in triu/tril#1418

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
akern40 merged 6 commits intorust-ndarray:masterfromakern40:fix-1415
Aug 11, 2024

Conversation

akern40
Copy link
Collaborator

Also makes the documentation a little nicer to read, since these are such visual methods.

Closes#1415

@akern40akern40 self-assigned thisAug 7, 2024
src/tri.rs Outdated

res
}
if is_layout_f(&self.dim, &self.strides) && !is_layout_c(&self.dim, &self.strides) {
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the work on this.

Why is there a conditional on memory layout? This purely a performance optimization right? Great place to have a comment to say what it's doing.

akern40 reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yes it is - I've added a comment detailing the purpose and the point of the two other&& conditions.

@blussbluss added this to the0.16.x milestoneAug 7, 2024
@blussbluss changed the titleFixes infinite recursion and off-by-one errorFix infinite recursion and off-by-one errorAug 7, 2024
@blussbluss changed the titleFix infinite recursion and off-by-one errorFix infinite recursion and off-by-one error in triu/trilAug 8, 2024
Copy link
Member

@blussbluss left a comment

Choose a reason for hiding this comment

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

Nice improvements and fixes, lgtm if you don't want to make further changes.

Would you like to squash it down into separate clean commits? Otherwise I can integrate it with a squash merge, same thing, and that also works.

akern40 reacted with thumbs up emoji
@akern40
Copy link
CollaboratorAuthor

Give me one minute to rebase so my commits are signed (switched computers and forgot to turn signing on) and then you can go ahead and squash merge.

@bluss
Copy link
Member

I'm not sure why it said it was out of sync with master, maybe because of ci.yaml changes in master. Rebased.

akern40 reacted with thumbs up emoji

@akern40akern40 merged commit1df6c32 intorust-ndarray:masterAug 11, 2024
12 checks passed
@akern40akern40 deleted the fix-1415 branchAugust 11, 2024 15:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@blussblussbluss approved these changes

Assignees

@akern40akern40

Labels
None yet
Projects
None yet
Milestone
0.16.x
Development

Successfully merging this pull request may close these issues.

tril and triu fail on 1×1 matrices
2 participants
@akern40@bluss

[8]ページ先頭

©2009-2025 Movatter.jp