Skip to content

Conversation

@Dsannue
Copy link
Contributor

@Dsannue Dsannue commented Dec 27, 2025

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

This class provides methods to check if a matrix is row-stochastic or column-stochastic, ensuring all elements are non-negative and the sums of rows or columns equal 1.
Updated package declaration for StochasticMatrix class.
@Dsannue Dsannue marked this pull request as draft December 27, 2025 23:31
@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2025

Codecov Report

❌ Patch coverage is 76.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.91%. Comparing base (51335cc) to head (e085cfc).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...ava/com/thealgorithms/matrix/StochasticMatrix.java 76.00% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7184      +/-   ##
============================================
- Coverage     78.92%   78.91%   -0.02%     
- Complexity     6875     6884       +9     
============================================
  Files           773      774       +1     
  Lines         22722    22747      +25     
  Branches       4461     4469       +8     
============================================
+ Hits          17933    17950      +17     
- Misses         4073     4077       +4     
- Partials        716      720       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Dsannue Dsannue marked this pull request as ready for review December 27, 2025 23:57
@DenizAltunkapan DenizAltunkapan merged commit d382e65 into TheAlgorithms:master Dec 28, 2025
7 checks passed
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.

3 participants