kmath
kmath copied to clipboard
Kotlin mathematics extensions library
Introduce buffer pooling and new buffer allocations using MemorySpec to avoid GC overhead on operations with large structures (especially ND structures). The pool could be hidden inside the context and...
UBigInt
I suppose that there are many areas (e. g. cryptography) where BigInt can be only non-negative. That makes me think that it would be great to introduce semiring (or maybe...
It would be great to have a module with stress tests as there is one with benchmarks.
Use https://epubs.siam.org/doi/10.1137/140954969
`(unit = "m", value = 42.0) / (unit = "s", value = 2.0) = (unit = ("/", "m", "s"), value = 21.0)` Values with a unit can be implemented as...
As mentioned by @dievsky, the current names of Algebras are not quite consistent with mathematical definitions. For example, NDField is not actually a field since not all elements are invertable...
When measured with OpenJDK15 on https://github.com/dievsky/kotlin-math-benchmark, kmath RealNDField shows bad performance compared to Viktor, MultiK, and direct loop computation. It drops rapidly after the first pass. Possibly due to some...