Skip to content

Commit

Permalink
add a use case
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 committed Sep 17, 2015
1 parent d93a7d6 commit 5bef401
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Expand Up @@ -24,6 +24,39 @@ The following two types are exported:

In general, queries on `SucVector` is faster than those on `RRR`, but `RRR` is compressible.

Conversions from bit vectors are defined for these types. So you just pass a bit vector to them:

```
julia> using IndexableBitVectors
julia> SucVector(bitrand(10))
10-element IndexableBitVectors.SucVector:
false
false
false
false
true
true
false
false
false
true
julia> RRR(bitrand(10))
10-element IndexableBitVectors.RRR:
false
false
false
false
true
false
false
false
true
false
```

## Benchmarks:

The script and result of benchmarks can be found in the [benchmarks](./benchmarks)
Expand Down

0 comments on commit 5bef401

Please sign in to comment.