Random-Cpp/NegBin
2020-11-06 22:34:02 +01:00
..
CMakeLists.txt Functional NegBin implementaion 2020-11-06 22:34:02 +01:00
main.cpp Functional NegBin implementaion 2020-11-06 22:34:02 +01:00
NegBin.cpp Functional NegBin implementaion 2020-11-06 22:34:02 +01:00
NegBin.h Functional NegBin implementaion 2020-11-06 22:34:02 +01:00
NegBinBenchmark.cpp Functional NegBin implementaion 2020-11-06 22:34:02 +01:00
README.md Functional NegBin implementaion 2020-11-06 22:34:02 +01:00

NegBin

Implements a class handling numbers in base -2.

Currently only the + operation is specific, all other operations (-, ~, * with a scalar) are based on this one. The implementation is quite naive and a bit slow but it works (~30x slower than integer addition on my machine). It can also convert to and from decimal !