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
Hi I would like to use easytensor with ad but instance Quaternion (Reverse s Double) is missing. Perhaps the methods of class Quaternion can be ordinary functions on newtype Quater a = Quater (Vector a 4) with SPECIALIZE pragmas for Double and Float. Then Numeric.Quaternion.Internal.QDouble and QFloat duplication will be gone, and maybe the numbers defined by ad will also work.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion! Perhaps, we'd need to check how it plays with the unboxed unlifted element types, since the language support for this has become much better in the recent versions of ghc. Actually, I wanted to replace the two with the SIMD vectors at some point (which is currently easy, but I'm not sure if that's possible with rewrite rules alone). If you manage to do this, a PR would be greatly appreciated!
Alternatively, you can try to implement your new quaternion type and the corrseponding class instance.
Hi I would like to use easytensor with ad but
instance Quaternion (Reverse s Double)
is missing. Perhaps the methods ofclass Quaternion
can be ordinary functions onnewtype Quater a = Quater (Vector a 4)
with SPECIALIZE pragmas for Double and Float. ThenNumeric.Quaternion.Internal.QDouble
andQFloat
duplication will be gone, and maybe the numbers defined by ad will also work.The text was updated successfully, but these errors were encountered: