-
Notifications
You must be signed in to change notification settings - Fork 93
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
Type def ColumnVec. #371
Type def ColumnVec. #371
Conversation
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.
Reviewed 5 of 6 files at r1, all commit messages.
Reviewable status: 5 of 6 files reviewed, all discussions resolved (waiting on @spapinistarkware)
src/core/mod.rs
line 15 at r1 (raw file):
pub mod utils; pub type ColumnVec<T> = Vec<Vec<T>>;
Looks good, but here's a problem that I've encountered dealing with these type_defs:
you never want to clone them, so if they're not pre-aggregated, you get &[&[F]] types,
idk if that's bad code on my part, but maybe you should consider covering these cases:
e.g.
}
Code snippet:
pub fn foo(arr: &ColumnVec<M31>){}
pub fn bar(){
let arr = vec![[M31::from_u32_unchecked(1); 10]; 10];
foo(&arr); <--- won't compile
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.
Reviewed 1 of 6 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)
0fdcd83
to
c9ddd62
Compare
29d7340
to
18c1867
Compare
c9ddd62
to
c3ff7d6
Compare
18c1867
to
d3ce76e
Compare
c3ff7d6
to
0cabdd2
Compare
d3ce76e
to
e5dbbab
Compare
0cabdd2
to
41cb5b2
Compare
e5dbbab
to
2c715a7
Compare
41cb5b2
to
278dd96
Compare
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)
This change is