/** * * IN3030 - Oblig 2 Pre-code usage example * * @author Magnus Espeland * @date 2019.02.14 */ public class Example { public static void main(String[] args) { // Process these from the command line int seed = 42; int n = 5; // Get the matrices double[][] a = Oblig2Precode.generateMatrixA(seed, n); double[][] b = Oblig2Precode.generateMatrixB(seed, n); // The result matrix double[][] c = new double[n][n]; // Do the multiplication // Clearly O(n^3) for(int i=0;i