Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PRNG seed for random vectors and matrices in tests #338

Merged
merged 4 commits into from
Sep 17, 2022

Conversation

termoshtt
Copy link
Member

@termoshtt termoshtt commented Sep 16, 2022

For #336

Use rand_pcg::Mcg128Xsl64 as PRNG algorithm, and use specified seed

Note that PCG specifies a default value for the parameter:
state = 0xcafef00dd15ea5e5

@termoshtt termoshtt self-assigned this Sep 16, 2022
@codecov
Copy link

codecov bot commented Sep 17, 2022

Codecov Report

Merging #338 (4ea4f36) into master (f3a9f4c) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #338      +/-   ##
==========================================
+ Coverage   89.98%   90.01%   +0.02%     
==========================================
  Files          72       72              
  Lines        3925     4026     +101     
==========================================
+ Hits         3532     3624      +92     
- Misses        393      402       +9     
Impacted Files Coverage Δ
ndarray-linalg/src/solve.rs 95.68% <ø> (ø)
ndarray-linalg/src/solveh.rs 75.49% <ø> (ø)
ndarray-linalg/tests/deth.rs 100.00% <ø> (ø)
ndarray-linalg/src/lobpcg/lobpcg.rs 90.67% <100.00%> (-0.55%) ⬇️
ndarray-linalg/src/lobpcg/svd.rs 87.65% <100.00%> (-1.10%) ⬇️
ndarray-linalg/tests/arnoldi.rs 100.00% <100.00%> (ø)
ndarray-linalg/tests/cholesky.rs 97.08% <100.00%> (+0.14%) ⬆️
ndarray-linalg/tests/convert.rs 100.00% <100.00%> (ø)
ndarray-linalg/tests/det.rs 98.59% <100.00%> (+0.02%) ⬆️
ndarray-linalg/tests/eigh.rs 100.00% <100.00%> (ø)
... and 18 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@termoshtt termoshtt marked this pull request as ready for review September 17, 2022 06:49
@termoshtt
Copy link
Member Author

termoshtt commented Sep 17, 2022

RNG for LOBPCG implementation is kept as it is, this PR only fix tests.

@termoshtt termoshtt merged commit 3a8520c into master Sep 17, 2022
@termoshtt termoshtt deleted the test-fixed-seed branch September 17, 2022 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant