Rad sa nitima množenje matrica 5 dio/ Matrix multiplication using multiple threads 5 part

package matrice; /** * * @author Amel Dzanic */ public class Test { public static void main(String args[]){ int b[][]={{1,2,0,1,2},{0,1,2,3,4},{1,3,4,5,11},{5,6,1,2,2}, {51,62,1,21,2}}; int a[][]={{1,0,0,0,0},{0,1,0,0,0},{0,0,1,0,0},{0,0,0,1,0},{0,0,0,0,1}}; matrica B=new matrica(5, 5, "B", b); matrica A= new matrica(5, 5, "A", a); try{ PokretacNiti dt= new PokretacNiti(A, B); dt.obavi(); matrica C = dt.getRez(); System.out.println(A); System.out.println(B); System.out.println(C); } catch ( MatricaException e){ System.out.println(e.getMessage()); } } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.