This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: RFC bit_vectors
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: "Alxneit-Kamber Ivo" <ivo dot alxneit at psi dot ch>
- Cc: <gsl-discuss at sourceware dot org>
- Date: Thu, 22 May 2008 09:01:56 +0100
- Subject: Re: RFC bit_vectors
- References: <1211361194.31910.9.camel@pc6411.psi.ch>
At Wed, 21 May 2008 11:13:14 +0200,
Alxneit-Kamber Ivo wrote:
> attached please find an implementation of 'bit_vectors' (maybe bit
> fields would be a better name) that might be an interesting addition to
> GSL. 'bit_vectors' can be used similarly like a C bit field, only that
> they grow and shrink dynamically depending on the number of bits in use.
> Currently the user is limited to 'maximum(size_t)' bits (the bit number
> is passed as size_t) or by the amount of memory available. Note,
> however, that memory for all bits does not necessarily need to be
> allocated because high bits that are either all 1 or 0 are stored as a
> single implied bit.
Hello,
Did you have a specific use in mind? This is probably more suited to
a general C library rather than scientific library.
--
Brian Gough