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

Addgb.MAX_SIZE, which isGrB_INDEX_MAX + 1#519

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
eriknw merged 4 commits intopython-graphblas:mainfromeriknw:gb_index_max
Nov 6, 2023

Conversation

@eriknw
Copy link
Member

INDEX_MAX may be a nice global value to expose. The GraphBLAS spec doesn't have many of these globals.

This is the largest index value, not the size of the domain of indices. For example, create the largest vector viaVector(int, INDEX_MAX + 1). Also, note that the spec does not specify a value forGrB_INDEX_MAX, only that implementations define it, so it may be backend-dependent.

Alternatively, we could instead defineMAX_SIZE, which would beGrB_INDEX_MAX + 1. I think this is much more natural to use; e.g.,Matrix(int, MAX_SIZE, MAX_SIZE). I don't think we need bothINDEX_MAX andMAX_SIZE.

So, which to y'all prefer,INDEX_MAX orMAX_SIZE? Feel free to suggest different names too.
CC@michelp@jim22k@SultanOrazbayev

This is the largest index, not the size of the domain of indices.For example, create the largest vector via `Vector(int, INDEX_MAX + 1)`.Also, note that the spec does not specify a value for `GrB_INDEX_MAX`,only that the implementation define it, so it may be backend-dependent.
@codecov
Copy link

codecovbot commentedNov 5, 2023
edited
Loading

Codecov Report

Merging#519 (31da669) intomain (c6d1e31) willdecrease coverage by0.27%.
The diff coverage is100.00%.

@@            Coverage Diff             @@##             main     #519      +/-   ##==========================================- Coverage   99.69%   99.42%   -0.27%==========================================  Files          95       95                Lines       21884    21889       +5       Branches     4138     4139       +1     ==========================================- Hits        21818    21764      -54- Misses         40       78      +38- Partials       26       47      +21

@michelp
Copy link

+1 for MAX_SIZE

SultanOrazbayev reacted with thumbs up emojieriknw reacted with heart emoji

@eriknweriknw changed the titleAddgb.INDEX_MAX, which isGrB_INDEX_MAXAddgb.MAX_SIZE, which isGrB_INDEX_MAX + 1Nov 5, 2023
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.

LGTM!

@eriknweriknw merged commit1ecf333 intopython-graphblas:mainNov 6, 2023
@eriknw
Copy link
MemberAuthor

Thanks, this is in!

SultanOrazbayev reacted with hooray emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@SultanOrazbayevSultanOrazbayevSultanOrazbayev approved these changes

+1 more reviewer

@michelpmichelpmichelp approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@eriknw@michelp@SultanOrazbayev

[8]ページ先頭

©2009-2025 Movatter.jp