MCPcopy Create free account
hub / github.com/Axect/Peroxide / test_det

Function test_det

tests/det.rs:5–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4#[test]
5fn test_det() {
6 let test_mat = ml_matrix(
7 "0.19832 0.00439457 0.72102 0.902151 0.889423 0.820379;
8 0.675846 0.33786 0.95276 0.123486 0.982328 0.493835;
9 0.473623 0.114907 0.728475 0.398401 0.817148 0.562954;
10 0.256825 0.889961 0.9725 0.0984108 0.1435 0.0820303;
11 0.530138 0.718637 0.450948 0.27664 0.98232 0.925627;
12 0.820478 0.0512247 0.757406 0.674419 0.128289 0.352762",
13 );
14 nearly_eq(test_mat.det(), 0.007304119459983581);
15}
16
17#[test]
18fn test_det2() {

Callers

nothing calls this directly

Calls 3

ml_matrixFunction · 0.85
nearly_eqFunction · 0.85
detMethod · 0.45

Tested by

no test coverage detected