Hi fellow Gophers
I wonder does anyone know of a good sparse/repetition array library with the following features?
* Support repetitions and lengths of *big.Int. For example {12, 12, 12, ... repeat 10^129 times}...{327, 327, 327, ... repeat 10^178 times }..., total length 10^2048
* Support the usual slice indexing/subslice etc. operations, along with the `Index` and `Sort` methods in the
slices package
* I need only 1-D arrays, so basically almost similar interface to the builtin slice data type
* Ideally clean and simple, with a single file implementation and a single file test.
I tried to look into the following libraries, but they don't quite seem to do what I want:
Further thinking on my above requirements seem to suggest what I am looking for is *not* what is commonly called "sparse vector" (whose repetitions are limited to zeros). However, I am not quite sure what to call my wanted data structure (I think what I have in mind should not be that esoteric, but alas could not find the search keyword).
Thanks