itt-ustutt / num-dual

Generalized (hyper-) dual numbers in rust
Other
53 stars 6 forks source link

Replacement for the `derive` methods #53

Closed prehner closed 1 year ago

prehner commented 1 year ago

52 removes the derive methods because they were (1) named unfortunately and (2) can not be implemented for Array tpyes anymore after switching to nalgebra.

Some cases still exist in which they are useful (in particular using, e.g., HyperDual::new(x, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) is extremely cumbersome).

Only implementing them for scalar types should not be a huge limitation, so the question is whether they should be renamed to, e.g., diff.

prehner commented 1 year ago

Done in #52