77 |
|
} |
78 |
|
} |
79 |
|
|
80 |
– |
|
80 |
|
abstract static class MatrixTree extends RecursiveAction { |
81 |
|
// maximum difference between old and new values |
82 |
|
double maxDiff; |
97 |
|
|
98 |
|
} |
99 |
|
|
101 |
– |
|
100 |
|
static final class LeafNode extends MatrixTree { |
101 |
|
final double[][] A; // matrix to get old values from |
102 |
|
final double[][] B; // matrix to put new values into |
160 |
|
} |
161 |
|
} |
162 |
|
|
165 |
– |
|
163 |
|
static final class TwoNode extends MatrixTree { |
164 |
|
final MatrixTree q1; |
165 |
|
final MatrixTree q2; |
175 |
|
|
176 |
|
} |
177 |
|
|
181 |
– |
|
178 |
|
static final class Driver extends RecursiveAction { |
179 |
|
MatrixTree mat; |
180 |
|
double[][] A; double[][] B; |
246 |
|
System.out.println("max diff after " + steps + " steps = " + md); |
247 |
|
} |
248 |
|
} |
253 |
– |
|
254 |
– |
|
249 |
|
} |