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

Function test_det2

tests/det.rs:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17#[test]
18fn test_det2() {
19 let test_mat = ml_matrix(
20 "1.0 0.0 -0.0000000006883364201712421 0.0 0.0 0.0000000001064860147865378;
21 -5598.076212382752 1.0 -0.0000006638966446777877 866.0254039436925 0.0 0.00000010270516835983237;
22 8.9999151651235 0.0 1.0000000017097728 -1.3922917214121957 0.0 -0.0000000002645027823871779;
23 0.0 0.0 -0.00000002065773795701977 1.0 0.0 -0.000000009587289550945372;
24 -866.0254060025674 0.0 -0.00000533869292434282 -401.92378967612115 1.0 -0.0000024776960089120054;
25 1.3922917247222075 0.0 0.000000013749056209635527 0.6461648381865064 0.0 1.000000006380959"
26 );
27 nearly_eq(test_mat.det(), 0.9999999915708137);
28}

Callers

nothing calls this directly

Calls 3

ml_matrixFunction · 0.85
nearly_eqFunction · 0.85
detMethod · 0.45

Tested by

no test coverage detected