-
Notifications
You must be signed in to change notification settings - Fork 8
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
ZFP compression of distance matrix #53
Comments
Looks like there's a nice solution to memory mapping in eigen here: https://stackoverflow.com/a/51256597 |
Note that Using zfpy (note that max dimension is 2^32, so long form doesn't work):
Zeroing the lower triangle:
Taking a slice which will fit from the long form:
(very similar results to the above) Not immediately obvious that this is easily useful. tol = 1e-3 gives ~1.5x compression, but when tol = 1e-4 (=~1/sketch size) compression is only about 10%. Storing the square form doubles the space required, and compressing that is more difficult. |
https://github.com/LLNL/zfp
Docs:
https://zfp.readthedocs.io/en/release0.5.5/tutorial.html#compressed-c-arrays
https://zfp.readthedocs.io/en/release0.5.5/python.html
The distance matrix is a 2xNxN tensor this might be effective for
The text was updated successfully, but these errors were encountered: