feat(python): implement python bindings for all components and solvers
This commit is contained in:
@@ -21,8 +21,7 @@ use std::num::NonZeroUsize;
|
||||
/// Default cache capacity (entries). LRU eviction when exceeded.
|
||||
pub const DEFAULT_CACHE_CAPACITY: usize = 10_000;
|
||||
|
||||
/// Default capacity as NonZeroUsize for LruCache (avoids unwrap in production path).
|
||||
const DEFAULT_CAP_NONZERO: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(DEFAULT_CACHE_CAPACITY) };
|
||||
const DEFAULT_CAP_NONZERO: NonZeroUsize = NonZeroUsize::new(DEFAULT_CACHE_CAPACITY).unwrap();
|
||||
|
||||
/// Quantization factor: values rounded to 1e-9 relative.
|
||||
/// (v * 1e9).round() as i64 for Hash-compatible key.
|
||||
|
||||
Reference in New Issue
Block a user