itt-ustutt / num-dual

Generalized (hyper-) dual numbers in rust
Apache License 2.0
60 stars 7 forks source link

Add serialization and deserialization with serde for scalar dual numbers #74

Closed prehner closed 7 months ago

prehner commented 7 months ago

nalgebra has a serde feature, but for generic vectors (static or dynamic) additional trait bounds on some associated types would be required.

@g-bauer I used a feature flag for the serde dependency. Do you think the additional boilerplate is worth it for a more ergonomic library for non serde users?