-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added inverse test * Make larger dimension for inverse test to see if crash triggered on CI * exactly the same code in a test gives a stack overflow!? * Increased stack size to make sure tests can work on CI * Fmt fixes * Adjusted accuracy of c32 test for CI * Adjusted accuracy of c32 test for CI --------- Co-authored-by: Timo Betcke <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use rlst::rlst_dynamic_array2; | ||
|
||
#[test] | ||
fn inverse_100() { | ||
let size = 100; | ||
|
||
let mut mat = rlst_dynamic_array2!(f64, [size, size]); | ||
|
||
for index in 0..size { | ||
mat[[index, index]] = 1.0; | ||
} | ||
|
||
mat.view_mut() | ||
.into_inverse_alloc() | ||
.expect("Inverse could not be computed."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters