in reply to PDL bitfield type - wanted?

Sounds good to me. I assume the plan would be to add many of the functions from modules like Algorithm::BitVector, Bit::Vector and so forth?

Replies are listed 'Best First'.
Re^2: PDL bitfield type - wanted?
by etj (Priest) on May 13, 2024 at 16:46 UTC
    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.

      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.