Skip to content
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

Fix NaturalPartialOrder method #390

Merged
merged 1 commit into from
Oct 2, 2017

Conversation

wilfwilson
Copy link
Collaborator

This PR resolves issue #389.

Copy link
Collaborator

@james-d-mitchell james-d-mitchell left a comment

Choose a reason for hiding this comment

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

Just that one comment, otherwise happy to merge.

p := Sortex(elts, IsGreensDGreaterThanFunc(S)) ^ -1;
func := function(x, y)
return IsGreensDGreaterThanFunc(S)(y, x);
end;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you use a 2-argument lambda here instead? p := Sortex(elts, {x, y} -> IsGreensDGreaterThanFunc(S)(y, x));?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Save some lines.

@james-d-mitchell james-d-mitchell added 3.0 bug Label for issues or PR which report or fix bugs labels Oct 2, 2017
Previously we pre-sorted the elements of the inverse semigroup
by a Greens D > function, but we should use a Greens D < function.

Resolves semigroups#389.
@james-d-mitchell james-d-mitchell merged commit 5eb026e into semigroups:stable-3.0 Oct 2, 2017
@wilfwilson wilfwilson deleted the fix-issue-389 branch October 2, 2017 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Label for issues or PR which report or fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants