-
Notifications
You must be signed in to change notification settings - Fork 34
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
chore: encapsulate sparse API #352
Conversation
.map(|ptrs| RowData::ref_cast(ptrs.try_into().unwrap())) | ||
} | ||
|
||
/// Retrieves the data for row slice [i..j] from `row`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to document that ths returned usize is a column index.
/// Wrapper type for encode rows of [`SparseMatrix`] | ||
#[derive(Debug, Clone, RefCast)] | ||
#[repr(transparent)] | ||
pub struct RowData([usize; 2]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't really RowData
, is it, rather RowIndexes
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to approve, the comments are non-blocking.
!benchmark --bench recursive-snark --features cuda |
https://github.com/lurk-lab/arecibo/actions/runs/8195838628 |
!benchmark --bench recursive-snark --features cuda |
Benchmark for 07f571eClick to view benchmark
|
https://github.com/lurk-lab/arecibo/actions/runs/8195995137 |
Small PR to clean up the sparse matrix API, so that manipulating the rows is clear.