novacrazy / dual_num

Dual Number library for Rust
https://docs.rs/dual_num/
17 stars 4 forks source link

Removed now-obsolete `partials` and `partials_t` and updated tests #19

Closed ChristopherRabotin closed 5 years ago

ChristopherRabotin commented 5 years ago

Note in the tests how the code to compute partials of matrix and gradients is soooo much simpler to read! It's the same code as for normal VectorN =)

I moved some functions around and it seems that the diff got confused. I've added a screenshot of the diff. Mainly, the big difference is that the function which needs to be derived has a signature which directly returns the evaluation of the function and its matrix of partials.

dualnum

Closes #18

novacrazy commented 5 years ago

Could this be rebased?

ChristopherRabotin commented 5 years ago

I merged master instead of rebasing it: my first attempt at rebasing it failed miserably, but the merge was quite straightforward.

novacrazy commented 5 years ago

Perfect, thanks.