Skip to content

Commit

Permalink
Remove needless return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and YeungOnion committed May 1, 2024
1 parent c8f219e commit cfdf905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distribution/multivariate_normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl MultivariateNormal {
pub fn new(mean: Vec<f64>, cov: Vec<f64>) -> Result<Self> {
let mean = DVector::from_vec(mean);
let cov = DMatrix::from_vec(mean.len(), mean.len(), cov);
return MultivariateNormal::new_from_nalgebra(mean, cov)
MultivariateNormal::new_from_nalgebra(mean, cov)
}

/// Constructs a new multivariate normal distribution with a mean of `mean`
Expand Down

0 comments on commit cfdf905

Please sign in to comment.