Skip to content

Commit

Permalink
Dedicated implementations for scalar dual numbers (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
prehner authored May 31, 2023
1 parent 522d975 commit 836c1a2
Show file tree
Hide file tree
Showing 20 changed files with 1,933 additions and 983 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.7.1] - 2023-05-31
### 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] - 2023-05-29
### Added
- Added new `HyerHyperDual` number for the calculation of third partial derivatives. [#51](https://github.com/itt-ustutt/num-dual/pull/51)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "num-dual"
version = "0.7.0"
version = "0.7.1"
authors = ["Gernot Bauer <bauer@itt.uni-stuttgart.de>",
"Philipp Rehner <prehner@ethz.ch>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion benches/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn criterion_benchmark(c: &mut Criterion) {
{
let mut group = c.benchmark_group("Hard sphere contribution");
group.bench_function("f64", |b| b.iter(|| bench(1.0)));
group.bench_function("Dual64", |b| b.iter(|| bench(Dual64::new_scalar(1.0, 1.0))));
group.bench_function("Dual64", |b| b.iter(|| bench(Dual64::new(1.0, 1.0))));
group.bench_function("DualVec64<2>", |b| {
b.iter(|| {
bench(DualVec::new(
Expand Down
Loading

0 comments on commit 836c1a2

Please sign in to comment.