in reply to Re: PDL bitfield type - wanted?
in thread PDL bitfield type - wanted?

You assume correctly! If you are prepared to help out (if you are, obviously I'd be very pleased to give lots and lots of help). I think the way forward would be for me to add (and use, to shake out bugs) the type implementation, then these algorithms would be in a separate PDL::BitOps or similar distro.

My immediate "itch" was to use a bitmap to implement seenmap in the fancy new contour_polylines; it annoyed me a bit that while I'd made that be a byte (i.e. 8-bit) ndarray, I was only using 2 of the bits in each of those. It's not a vast amount of memory being wasted, but that has an impact on cache usage.

Replies are listed 'Best First'.
Re^3: PDL bitfield type - wanted?
by swl (Prior) on May 14, 2024 at 09:54 UTC

    I can help with testing and debugging. Any initial implementation is of course best done by yourself given familiarity with the innards of PDL.

      I will implement a bitfield type in due course, together with use of it that makes it obvious how to do so. But I won't be implementing myself the stuff in the modules you cite. I will only provide (lots of) assistance. If you're not willing to do that, it's deeply unlikely to happen.

        OK. If you implement the bitfield type then I can look into adding some of the bit vector stuff to it when I have the available time.