Matrix Multiplication (Java)

xiaoxiao2021-03-06  69

Public class multimatrix {int [] MultiplyMatrix; public static void main (string args []) {int [] [] a = {{1, 0, 3, -1}, {2, 1, 0, 2} }; Int [] [] b = {{4, 1, 0}, {- 1, 1, 3}, {2, 0, 1}, {1, 3, 4}}; Multimatrix mm = New MultiMatrix ); Mm.mmatrix (a, b); mm.display ();

} Public void mmatrix (int [] [] a, int [] [] b) {multiplymatrix = new int [a.length] [b [0] .length]; for (int i = 0; i

转载请注明原文地址:https://www.9cbs.com/read-120007.html

New Post(0)