Zach Kelling 517b493821 Add bit and units subpackages, remove safemath wrapper
- Add math/bit: XOR, AND, compress operations (from bitutil)
- Add math/units: Lux denomination constants (NanoLux, MicroLux, etc.)
- Remove safemath/: was just re-exporting geth/common/math
- Use github.com/luxfi/geth/common/math directly for safe math ops
2026-01-03 15:52:15 -08:00
2025-12-31 22:21:37 -08:00
2025-12-31 22:21:37 -08:00
2025-08-18 13:18:19 -05:00
2025-12-19 08:45:58 -08:00

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.

S
Description
Mathematical utilities library for the Lux ecosystem
Readme BSD-3-Clause
1.8 MiB
Languages
Go 100%