File tree Expand file tree Collapse file tree
src/main/java/com/thealgorithms/matrix Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .thealgorithms .matrix ;
22
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+
324public final class MatrixMultiplication {
425 private MatrixMultiplication () {
526 }
You can’t perform that action at this time.
0 commit comments