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

Implementation of sketch_vector #74

Merged
merged 8 commits into from
Oct 6, 2023
Merged

Implementation of sketch_vector #74

merged 8 commits into from
Oct 6, 2023

Conversation

kaiwenhe7
Copy link
Contributor

Created sketch_vector function in skge.hh and added unit test test_sketch_vec

@kaiwenhe7
Copy link
Contributor Author

@rileyjmurray Hi Riley. I finished the testing that you requested on Friday. I also added the documentation for sketch_vector. I'm unsure how to see if it looks good. Let me know what you think. Thanks!

Copy link
Contributor

@rileyjmurray rileyjmurray left a comment

Choose a reason for hiding this comment

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

Thanks for your patience, @kaiwenhe7. I've left a large number of comments about the documentation for sketch_vector. I'd also like you to make a wrapper for sketch_vector which automatically sets i_off = j_off = 0 (you can't do this with default arguments since there are arguments without defaults that follow).

RandBLAS/skge.hh Outdated Show resolved Hide resolved
RandBLAS/skge.hh Outdated Show resolved Hide resolved
RandBLAS/skge.hh Outdated Show resolved Hide resolved
RandBLAS/skge.hh Outdated Show resolved Hide resolved

// Generate wide sketching operator
RandBLAS::DenseDist D(d, m);
RandBLAS::DenseSkOp<double> S_wide(D, seed, nullptr);
Copy link
Contributor

Choose a reason for hiding this comment

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

If you template on T then you should use RandBLAS::DenseSkOp<T>, not RandBLAS::DenseSkOp<double>.

RandBLAS/skge.hh Show resolved Hide resolved
RandBLAS/skge.hh Outdated Show resolved Hide resolved
RandBLAS/skge.hh Show resolved Hide resolved
test/test_dense/test_sketch_gefl3.cc Show resolved Hide resolved
@rileyjmurray rileyjmurray changed the title WIP: Implementation of Sketch_Vector Implementation of sketch_vector Sep 29, 2023
@rileyjmurray rileyjmurray merged commit 13658f7 into main Oct 6, 2023
3 checks passed
@rileyjmurray rileyjmurray deleted the sketch_vector branch October 6, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants