Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add matrix multiplication with double[][] and unit tests#6417

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Nishitha0730 wants to merge21 commits intoTheAlgorithms:master
base:master
Choose a base branch
Loading
fromNishitha0730:my_algorithm

Conversation

Nishitha0730
Copy link

Summary

This PR adds an implementation of standard matrix multiplication usingdouble[][] arrays in thecom.thealgorithms.matrix package.

  • TheMatrixMultiplication class multiplies two 2D matrices with floating-point support.
  • Includes input validation for null, empty, and incompatible dimensions.

Tests

Added a comprehensive JUnit 5 test classMatrixMultiplicationTest with:

  • Valid multiplication tests
  • Edge cases: null input, empty matrix, incompatible dimensions
  • Floating-point accuracy check using EPSILON

Please let me know if any changes are needed!

@codecov-commenter
Copy link

codecov-commenter commentedJul 19, 2025
edited
Loading

Codecov Report

Attention: Patch coverage is93.33333% with1 line in your changes missing coverage. Please review.

Project coverage is 74.66%. Comparing base(5c6d3c3) to head(4257686).
Report is 2 commits behind head on master.

Files with missing linesPatch %Lines
...com/thealgorithms/matrix/MatrixMultiplication.java93.33%0 Missing and 1 partial⚠️
Additional details and impacted files
@@            Coverage Diff            @@##             master    #6417   +/-   ##=========================================  Coverage     74.66%   74.66%- Complexity     5459     5467    +8=========================================  Files           682      683    +1       Lines         19010    19025   +15       Branches       3670     3675    +5     =========================================+ Hits          14193    14205   +12- Misses         4258     4259    +1- Partials        559      561    +2

☔ 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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@DenizAltunkapanDenizAltunkapanAwaiting requested review from DenizAltunkapanDenizAltunkapan is a code owner

@yanglbmeyanglbmeAwaiting requested review from yanglbmeyanglbme is a code owner

@vil02vil02Awaiting requested review from vil02vil02 is a code owner

@alxkmalxkmAwaiting requested review from alxkmalxkm is a code owner

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Nishitha0730@codecov-commenter

[8]ページ先頭

©2009-2025 Movatter.jp