|
irlba_tatami
tatami wrappers for IRLBA
|
This library implements a wrapper class to use tatami::Matrix instances in the irlba library. The goal is to support IRLBA on alternative matrix representations (e.g., sparse, file-backed) without requiring realization into a irlba::SimpleMatrix.
Not much to say, really. Just pass a irlba_tatami::Normal or irlba_tatami::Transposed anywhere that an irlba::Matrix can be accepted:
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 irlba_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 -DIRLBA_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.