benninkrs / StaticBitVectors.jl

Dense packed, stack-allocated bit vectors
0 stars 0 forks source link

Implement row-vector versions #2

Closed benninkrs closed 2 months ago

benninkrs commented 2 months ago

Sometimes I want to treat bit vectors as row vectors. A StaticBitVector can be wrapped in a Transpose type, but then most of the custom functionality of StaticBitVectors is lost. Another annoying "feature" is that indexing a Tranpose vector with an collection yields a column vector.

benninkrs commented 2 months ago

Implemented in 956461d.

The strategy taken was to define row types as adjoints of the column types and write much of the existing code more generically; however, indexing in particular required almost a full custom implementation for row vectors.