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

Clarify in docs that monoids are commutative and associative#469

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

Conversation

@eriknw
Copy link
Member

@eriknweriknw commentedJun 23, 2023
edited
Loading

Technically Monoids don't need to commute, but behavior is ill-defined (or invalid) if non-commutative monoids are used for reductions and semirings, so, practically speaking, all monoids should commute in GraphBLAS. I don't know of any use cases for non-commutative monoids--a binary operator should always be possible to use and preferred.

Fixes#468.

@coveralls
Copy link

coveralls commentedJun 23, 2023
edited
Loading

Coverage Status

coverage: 99.55% (+11.6%) from 87.908% when pulling1155676 on eriknw:monoids_commute_and_associate intoda01661 on python-graphblas:main.

Copy link
Member

@SultanOrazbayevSultanOrazbayev left a comment

Choose a reason for hiding this comment

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

Looks good, with a possible clarification that GraphBLAS uses commutative monoids (so commutative is not part of the definition of a monoid, but the monoids used by GraphBLAS also have this property). That's my understanding from the "Design of the GraphBLAS API for C" paper and, ahem, Wikipedia.

@eriknw
Copy link
MemberAuthor

Thanks for looking@SultanOrazbayev. Refined.

Copy link
Member

@SultanOrazbayevSultanOrazbayev left a comment

Choose a reason for hiding this comment

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

Thank you, LGTM!

@eriknweriknw merged commit5e18a9c intopython-graphblas:mainJun 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@SultanOrazbayevSultanOrazbayevSultanOrazbayev approved these changes

@jim22kjim22kAwaiting requested review from jim22k

Assignees

No one assigned

Labels

documentationImprove or add to documentation

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[pyos][docs] "Monoids are also associative, so the order of the inputs does not matter."

3 participants

@eriknw@coveralls@SultanOrazbayev

[8]ページ先頭

©2009-2025 Movatter.jp