template<typename KIndex_, typename KData_, typename TValue_, typename TIndex_, class MatrixPointer_ = std::shared_ptr<const tatami::Matrix<TValue_, TIndex_> >>
class knncolle_tatami::Matrix< KIndex_, KData_, TValue_, TIndex_, MatrixPointer_ >
knncolle-compatible wrapper around a tatami matrix.
- Template Parameters
-
| KIndex_ | Integer type of observation indices for knncolle. |
| KData_ | Numeric type of the data for knncolle. |
| TValue_ | Numeric type of matrix values for tatami. |
| TIndex_ | Integer type of the row/column indices for tatami. |
| MatrixPointer_ | Pointer to a tatami::Matrix. This may be a smart or raw pointer class. |
Pretty much as it says on the tin - implements a knncolle::Matrix subclass to wrap a tatami::Matrix. The idea is to enable the use of arbitrary tatami matrix representations in knncolle functions, e.g., to create a search index from a file-backed matrix.