|
knncolle_tatami
tatami wrappers for neighbor detection
|
This library implements a wrapper class to use tatami::Matrix instances in the knncolle library. The goal is to support k-means clustering from alternative matrix representations (e.g., sparse, file-backed) without requiring realization into a knncolle::SimpleMatrix.
Not much to say, really. Just replace the usual knncolle::SimpleMatrix with an instance of a knncolle_tatami::Matrix.
See the reference documentation for more details.
FetchContentIf you're using CMake, you just need to add something like this to your CMakeLists.txt:
Then you can link to knncolle_tatami to make the headers available during compilation:
By default, this will use FetchContent to fetch all external dependencies. Applications are advised to pin the versions of each dependency for stability - see extern/CMakeLists.txt for suggested versions. If you want to install them manually, use -DKNNCOLLE_TATAMI_FETCH_EXTERN=OFF.
find_package()To install the library, clone an appropriate version of this repository and run:
Then we can use find_package() as usual:
Again, this will automatically acquire all its dependencies, see recommendations above.
If you're not using CMake, the simple approach is to just copy the files in include/ - either directly or with Git submodules - and include their path during compilation with, e.g., GCC's -I. This requires the external dependencies listed in extern/CMakeLists.txt.