Menu

#3 Add float in PDL::Ops

None
wont-fix
nobody
None
1
2022-04-14
2003-12-21
Anonymous
No

Is it possible add to float support in DL::Ops
when there is only double ?
For example power, exp, log...

Thanks,

Discussion

  • Chris Marshall

    Chris Marshall - 2009-05-01

    Reducing the priority of this request to reflect the lack of an actual POC and the age of the request without further follow-up. Requests with "live" submitters that can be interacted with to refine the idea and evaluate satisfaction with solution proposals get much farther in active development. Another alternative is to fix the code oneself and submit a working patch from which to start.

     
  • Chris Marshall

    Chris Marshall - 2009-05-01
    • priority: 5 --> 2
     
  • Chris Marshall

    Chris Marshall - 2010-02-20

    The main issue here is that the functions are generated from descriptions
    but the current implementation does not appear to have support for multiple
    names providing a single high-level PDL function or operator.

    Since this functionality is Core and critical to PDL functioning, it will be
    difficult to fix without significant risk to PDL correctness. Given that computation
    is much cheaper than memory access on modern processors, a "hack around"
    might be to implement with a pre-cast to double and a post-conversion back
    to float. Of course you then have to handle out-of-range errors and more.

    --Chris

     
  • Chris Marshall

    Chris Marshall - 2010-02-20
    • priority: 2 --> 1
     
  • mohawk

    mohawk - 2022-04-14
    • status: open --> wont-fix
    • Group: -->
     
  • mohawk

    mohawk - 2022-04-14

    This actually works already: get_convertedpdl creates a data-flowing conversion to eg a "double" ndarray that will the data-flow changes back afterwards on destruction.

     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.