public void run(){
totmat = new Matrix(numR, costmat.numCols());
dirmat = new Matrix(numR, costmat.numCols());
for(int r = 0; r < numR; r++)
writetoRow[r].value = costmat.row(r);
new Parallel(writetoRow).run();
new Parallel(readfromRow).run();
for(int r = 0; r < numR; r++)
totmat.setRow(r, (int[])readfromRow[r].value);
new Parallel(readfromRow).run();
for(int r = 0; r < numR; r++)
dirmat.setRow(r, (int[])readfromRow[r].value);
// Print out results
}
Previous slide | Next slide | Back to first slide | View graphic version |