Skip to content

Commit

Permalink
Ver 0.34.7
Browse files Browse the repository at this point in the history
- More features for plot
- Explicit getter for ODE
  • Loading branch information
Axect committed Mar 11, 2024
2 parents a72778b + 6457b0b commit ea8ed5c
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 89 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "peroxide"
version = "0.34.6"
version = "0.34.7"
authors = ["axect <axect@outlook.kr>"]
edition = "2018"
description = "Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with farmiliar syntax"
Expand All @@ -20,7 +20,7 @@ maintenance = { status = "actively-developed" }
float-cmp = "0.9"

[dependencies]
csv = { version = "1.1", optional = true, default_features = false }
csv = { version = "1", optional = true, default_features = false }
rand = "0.8"
rand_distr = "0.4"
order-stat = "0.1"
Expand Down
18 changes: 18 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Release 0.34.7 (2024-03-11)

## More updates for `plot` feature

- Make legend optional (Now, no legend is available)
- Implement `set_line_style`. Here are available line styles.
- `LineStyle::Solid`
- `LineStyle::Dashed`
- `LineStyle::Dotted`
- `LineStyle::DashDot`
- Implement `set_color`
- Implement `set_alpha`
- More markers.

## Getter for ODE

- Add explicit getter for `ExplicitODE` and `ImplicitODE` for various fields.

# Release 0.34.6 (2024-03-01)

## Big updates for `plot` feature
Expand Down
68 changes: 68 additions & 0 deletions src/numerical/ode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,38 @@ impl<E: Environment> ExplicitODE<E> {
pub fn get_env(&self) -> &E {
&self.env
}

pub fn get_step_size(&self) -> f64 {
self.step_size
}

pub fn get_times(&self) -> usize {
self.times
}

pub fn get_method(&self) -> ExMethod {
self.method
}

pub fn get_stop_condition(&self) -> fn(&Self) -> bool {
self.stop_cond
}

pub fn get_has_stopped(&self) -> bool {
self.has_stopped
}

pub fn get_init_cond(&self) -> &State<f64> {
&self.init_cond
}

pub fn get_bound_cond1(&self) -> &(State<f64>, BoundaryCondition) {
&self.bound_cond1
}

pub fn get_bound_cond2(&self) -> &(State<f64>, BoundaryCondition) {
&self.bound_cond2
}
}

impl<E: Environment> ODE<E> for ExplicitODE<E> {
Expand Down Expand Up @@ -834,6 +866,42 @@ impl<E: Environment> ImplicitODE<E> {
pub fn get_env(&self) -> &E {
&self.env
}

pub fn get_step_size(&self) -> f64 {
self.step_size
}

pub fn get_times(&self) -> usize {
self.times
}

pub fn get_method(&self) -> ImMethod {
self.method
}

pub fn get_stop_condition(&self) -> fn(&Self) -> bool {
self.stop_cond
}

pub fn get_has_stopped(&self) -> bool {
self.has_stopped
}

pub fn get_init_cond(&self) -> &State<f64> {
&self.init_cond
}

pub fn get_bound_cond1(&self) -> &(State<f64>, BoundaryCondition) {
&self.bound_cond1
}

pub fn get_bound_cond2(&self) -> &(State<f64>, BoundaryCondition) {
&self.bound_cond2
}

pub fn get_rtol(&self) -> f64 {
self.rtol
}
}

/// Value of 3f64.sqrt()
Expand Down
Loading

0 comments on commit ea8ed5c

Please sign in to comment.