The switch to nalgebra as backend for vector dual numbers provides the opportunity to make them generic with respect to the array backend. In particular the number of elements can be generalized to be either constant or dynamic.
To make use of the change, Copy should not be a supertrait of DualNum anymore (else only the dual numbers with constant size would implement DualNum). As a consequence, additional operations between owned and borrowed instances need to be implemented.
The switch to
nalgebra
as backend for vector dual numbers provides the opportunity to make them generic with respect to the array backend. In particular the number of elements can be generalized to be either constant or dynamic.To make use of the change,
Copy
should not be a supertrait ofDualNum
anymore (else only the dual numbers with constant size would implementDualNum
). As a consequence, additional operations between owned and borrowed instances need to be implemented.