Closed ChristopherRabotin closed 6 years ago
I think that this should make dual_num
ready for a crates.io release for version 0.2.0
.
Everything looks pretty good to me, although I'll take a deeper look after work. Those Allocator
bounds do seem a little excessive...
Good point! I had added a bunch of them initially when things were not working well, but many can be removed now.
I'll merge this in a few minutes after some quick super minor cleanups.
By the way, if you'd rather use LaTeX from within doc comments, we can use this hack to do so.
Sorry for the delay, just published version 0.2.0
nabla
functions are renamedpartials
sincenabla
refers specifically to the gradient computation, which is squarepartials
function to return the state and the function derivative: a single call to the function to return the state and its derivative may be useful in applications where such computation is especially heavystd::ops
to allow for+=
,*=
,-=
and/=
operations on duals and their parametrized type, and associated testsCloses #4