Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-15836

Add helper code for invoking C++ templates from Python dtype arguments

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: utils
    • Labels:
    • Templates:
    • Story Points:
      1
    • Sprint:
      BG3_F18_09
    • Team:
      Data Release Production

      Description

      In C++, it's natural to require an explicit template argument for templated functions whose template parameters only affect their return type. That doesn't work when wrapping normally with pybind11, which just sees a set of equivalent overloaded functions and blithely selects the first one defined.

      The [Num-]Pythonic interface for functions like this would take a dtype argument to select the type returned, and this ticket will provide a helper class that makes that easy to implement.

      This is a spin-off from DM-15500, where this helper code is now almost complete.

      I'm calling this gen3-middleware because that's why I'm doing DM-15500, even though this ticket is a few steps removed from the core gen3 work. TCAMs are welcome to reclassify.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  jbosch Jim Bosch
                  Reporter:
                  jbosch Jim Bosch
                  Reviewers:
                  Nate Lust
                  Watchers:
                  Jim Bosch, Nate Lust
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel