mirror of
https://github.com/luxfi/math.git
synced 2026-07-27 03:38:49 +00:00
v1.2.0
- Add Zero[T any]() generic function for zero values - Add IsSortedBytes for byte slice sorting checks - Add heap/queue.go with priority Queue[T] implementation - Add heap/map.go with indexed Map[K,V] for heap operations - Add linked/list.go with doubly-linked List[T] - Add linked/hashmap.go with ordered HashMap[K,V] - Update sampleable_set.go to use local luxmath.Zero[T]() - Update averager_heap.go to use github.com/luxfi/math/heap - Update safe_math.go to use luxmath.Zero[T]() - Remove github.com/luxfi/utils dependency entirely
Lux Math Library
A comprehensive mathematical utilities library for the Lux ecosystem.
Features
- Math utilities: Safe math operations, averagers, and meters
- Set operations: Efficient set implementations including bit sets
- Numerical computing: Integration with gonum for advanced mathematical operations
Installation
go get github.com/luxfi/math
Usage
import (
"github.com/luxfi/math/math"
"github.com/luxfi/math/set"
)
License
See the LICENSE file for licensing terms.
Languages
Go
100%