Skip to content

Commit

Permalink
Merge branch 'release' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Axect committed Apr 9, 2024
2 parents a3d13d4 + 29558ed commit b8fef9a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "peroxide"
version = "0.36.0"
version = "0.36.1"
authors = ["axect <[email protected]>"]
edition = "2018"
description = "Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with farmiliar syntax"
Expand Down
36 changes: 36 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# Release 0.36.1 (2024-04-09)

- Fix all warnings in peroxide
- Change redundant method
- `Vec<f64>::resize` -> `Vec<f64>::reshape`
- Error handling for concatenation
- `cbind` & `rbind` now returns `Result<Matrix, ConcatenateError>`
- New non-macro utils
- `column_stack(&[Vec<f64>]) -> Result<Matrix, ConcatenateError>`
- `row_stack(&[Vec<f64>]) -> Result<Matrix, ConcatenateError>`
- `rand_with_rng(usize, usize, &mut Rng) -> Matrix`
- Generic Butcher tableau trait (now for embedded Runge-Kutta methods)

```rust
pub trait ButcherTableau {
const C: &'static [f64];
const A: &'static [&'static [f64]];
const BH: &'static [f64];
const BL: &'static [f64];

fn tol(&self) -> f64;
fn safety_factor(&self) -> f64;
fn max_step_size(&self) -> f64;
fn min_step_size(&self) -> f64;
fn max_step_iter(&self) -> usize;
}
```

- Implement `ODEIntegrator` for `ButcherTableau`
- Just declare `ButcherTableau` then `step` is free

- Three available embedded Runge-Kutta methods
- `RKF45`: Runge-Kutta-Fehlberg 4/5th order
- `DP45`: Dormand-Prince 4/5th order
- `TSIT45`: Tsitouras 4/5th order

# Release 0.36.0 (2024-04-08)

## Huge Update - Error handling & Whole new ODE
Expand Down
1 change: 0 additions & 1 deletion src/numerical/ode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ pub trait ButcherTableau {
fn max_step_size(&self) -> f64;
fn min_step_size(&self) -> f64;
fn max_step_iter(&self) -> usize;

}

impl<BT: ButcherTableau> ODEIntegrator for BT {
Expand Down

0 comments on commit b8fef9a

Please sign in to comment.