ChainRulesTestUtils.jl
ChainRulesTestUtils.jl copied to clipboard
Support non-standard scalars in test_scalar
test_scalar currently is very Real and Complex focused. This PR generalizes test_scalar to work the same for any scalar for which FiniteDifferences.to_vec (and a handful of base functions) are implemented.
We test it with Quaternions.Quaternion. We'd ideally test against a more minimal number, but it turns out one needs to implement quite a few base methods to get a new number to work correctly.
will review tomorrow
Is this ready for rereview?
Is this ready for rereview?
Not yet, I'll try to finish it up this week.