Skip to content

Commit

Permalink
Make MultivariateNormalVariable.cholesky public (#123)
Browse files Browse the repository at this point in the history
to let user to check the input before constructing a MultivariateNormalVariable instance. In other case if the input is wrong `assert(0);` terminates the program.
  • Loading branch information
drug007 authored Feb 3, 2020
1 parent 9c711d2 commit 4da4457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/mir/random/ndvariable.d
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ struct MultivariateNormalVariable(T)
Compute Cholesky decomposition in place. Only accesses lower/left half of
the matrix. Returns false if the matrix is not positive definite.
+/
private static bool cholesky()(Slice!(T*, 2) m)
static bool cholesky()(Slice!(T*, 2) m)
{
import mir.algorithm.iteration: reduce;
assert(m.length!0 == m.length!1);
Expand Down

0 comments on commit 4da4457

Please sign in to comment.