Skip to content

Commit

Permalink
Implement getters for NPresult
Browse files Browse the repository at this point in the history
  • Loading branch information
mhovd committed Oct 27, 2024
1 parent 7062aef commit 8e30d52
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pmcore"
version = "0.7.0"
version = "0.7.1"
edition = "2021"
authors = [
"Julián D. Otálvaro <[email protected]>",
Expand Down
12 changes: 12 additions & 0 deletions src/routines/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ impl<E: Equation> NPResult<E> {
self.converged
}

pub fn get_theta(&self) -> &Array2<f64> {
&self.theta
}

pub fn get_psi(&self) -> &Array2<f64> {
&self.psi
}

pub fn get_w(&self) -> &Array1<f64> {
&self.w
}

pub fn write_outputs(&self) -> Result<()> {
if self.settings.output.write {
let idelta: f64 = self.settings.predictions.idelta;
Expand Down

0 comments on commit 8e30d52

Please sign in to comment.