You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the autoboxing and unboxing going on with tupled functions I'm not sure how this issue would be resolved? It seems that the 'standard library' of LMS avoids these problems by staging at a different scope e.g. Rep[A] => Rep[B] vs Rep[A => B] with more work being done in the expression layer and generation phase.
I'm not sure if this is a bug or just intended behaviour, so how should I go about this problem? Thanks!
The text was updated successfully, but these errors were encountered:
Imagine a scenario where you want to wrap a third-party higher-order polymorphic function like so:
So generating our 'test' function where T == Double gives us the correct functionality:
While generating our 'test' function where T == (Double, Double) gives us the wrong functionality:
Due to the autoboxing and unboxing going on with tupled functions I'm not sure how this issue would be resolved? It seems that the 'standard library' of LMS avoids these problems by staging at a different scope e.g. Rep[A] => Rep[B] vs Rep[A => B] with more work being done in the expression layer and generation phase.
I'm not sure if this is a bug or just intended behaviour, so how should I go about this problem? Thanks!
The text was updated successfully, but these errors were encountered: