Num-dual

Latest version: v0.9.1

Safety actively analyzes 622389 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.9.1

Added
- Added `serde` feature that enables serialization and deserialization of all scalar dual numbers. [74](https://github.com/itt-ustutt/num-dual/pull/74)

0.9.0

Packaging
- Updated `pyo3` and `numpy` dependencies to 0.21 and adapted to the new `Bound` API.

0.8.1

Packaging
- Un-deprecated the `linalg` module.

0.8.0

Packaging
- Updated `pyo3` and `numpy` dependencies to 0.20.

0.7.1

Fixed
- Added dedicated implementations for scalar dual numbers (`Dual`, `Dual2`, `HyperDual`) to avoid a performance regression introduced in `0.7.0`. [68](https://github.com/itt-ustutt/num-dual/pull/68)

0.7.0

Added
- Added new `HyerHyperDual` number for the calculation of third partial derivatives. [51](https://github.com/itt-ustutt/num-dual/pull/51)
- Added new functions `first_derivative`, `gradient`, `jacobian`, `second_derivative`, `hessian`, `third_derivative`, `second_partial_derivative`, `partial_hessian`, `third_partial_derivative` and `third_partial_derivative_vec` that provide a convenient interface for the calculation of derivatives. [52](https://github.com/itt-ustutt/num-dual/pull/52)
- Added new functions `try_first_derivative`, `try_gradient`, `try_jacobian`, `try_second_derivative`, `try_hessian`, `try_third_derivative`, `try_second_partial_derivative`, `try_partial_hessian`, `try_third_partial_derivative` and `try_third_partial_derivative_vec` that provide the same functionalities for fallible functions. [52](https://github.com/itt-ustutt/num-dual/pull/52)
- Implemented the `RealField` and `ComplexField` traits from `nalgebra` for `DualVec`. [59](https://github.com/itt-ustutt/num-dual/pull/59)
- Added the `python_macro` feature that provides the `impl_dual_num` macro. [63](https://github.com/itt-ustutt/num-dual/pull/63)

Changed
- Renamed `derive*` methods to `derivative*`. [52](https://github.com/itt-ustutt/num-dual/pull/52)
- Generalized the implementation of vector dual numbers to use both statically and dynamically sized arrays internally. [58](https://github.com/itt-ustutt/num-dual/pull/58)
- Removed `Copy`, `Send` and `Sync` as supertraits of `DualNum`. The individual dual number data types still implement the traits if they are statically allocated. [58](https://github.com/itt-ustutt/num-dual/pull/58)
- Renamed type aliases from, e.g., `DualVec` to `DualSVec` and `DualDVec` for statically and dynamically allocated dual numbers, respectively. [58](https://github.com/itt-ustutt/num-dual/pull/58)

Removed
- Removed the `StaticMat` struct in favor of the analogous implementations from `nalgebra`. [52](https://github.com/itt-ustutt/num-dual/pull/52)
- Removed the `derive*` methods for vector types due to the change to `nalgebra`. [52](https://github.com/itt-ustutt/num-dual/pull/52)
- Removed the `derive*` functions in Python in favor of the aforementioned new functions. [52](https://github.com/itt-ustutt/num-dual/pull/52)
- Removed the `build_wheel` workspace crate. The main crate is now also used to build the Python package. [63](https://github.com/itt-ustutt/num-dual/pull/63)

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.