File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/main/java/com/thealgorithms/matrix Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .thealgorithms .matrix ;
2
2
3
+ /**
4
+ * This class provides a method to perform matrix multiplication.
5
+ *
6
+ * <p>Matrix multiplication takes two 2D arrays (matrices) as input and
7
+ * produces their product, following the mathematical definition of
8
+ * matrix multiplication.
9
+ *
10
+ * <p>For more details:
11
+ * https://www.geeksforgeeks.org/java/java-program-to-multiply-two-matrices-of-any-size/
12
+ * https://en.wikipedia.org/wiki/Matrix_multiplication
13
+ *
14
+ * <p>Time Complexity: O(n^3) – where n is the dimension of the matrices
15
+ * (assuming square matrices for simplicity).
16
+ *
17
+ * <p>Space Complexity: O(n^2) – for storing the result matrix.
18
+ *
19
+ *
20
+ * @author Nishitha Wihala Pitigala
21
+ *
22
+ */
23
+
3
24
public final class MatrixMultiplication {
4
25
private MatrixMultiplication () {
5
26
}
You can’t perform that action at this time.
0 commit comments