Expand description
LRU kernel cache matching the original LIBSVM.
The cache stores rows of the kernel matrix Q as Qfloat (f32) slices.
When memory is exhausted, the least-recently-used row is evicted.
The C++ original uses a doubly-linked circular list with raw pointers. This Rust version uses an index-based circular doubly-linked list for O(1) LRU operations, avoiding unsafe code while matching the semantics.
Structs§
- Cache
- LRU cache for kernel matrix rows.
Type Aliases§
- Qfloat
- Element type for cached kernel matrix rows. Matches LIBSVM’s
Qfloat = float.