ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/MatrixMultiply.java
(Generate patch)

Comparing jsr166/src/test/loops/MatrixMultiply.java (file contents):
Revision 1.5 by jsr166, Tue Mar 15 19:47:05 2011 UTC vs.
Revision 1.8 by jsr166, Thu Jan 15 18:34:19 2015 UTC

# Line 6 | Line 6
6  
7   //import jsr166y.*;
8   import java.util.concurrent.*;
9 import java.util.concurrent.TimeUnit;
10
9  
10   /**
11   * Divide and Conquer matrix multiply demo
# Line 80 | Line 78 | public class MatrixMultiply {
78          pool.shutdown();
79      }
80  
83
81      // To simplify checking, fill with all 1's. Answer should be all n's.
82      static void init(float[][] a, float[][] b, int n) {
83          for (int i = 0; i < n; ++i) {
# Line 111 | Line 108 | public class MatrixMultiply {
108       *  A21 | A22     B21 | B21     A21*B11 | A21*B21     A22*B21 | A22*B22
109       * </pre>
110       */
114
115
111      static class Multiplier extends RecursiveAction {
112          final float[][] A;   // Matrix A
113          final int aRow;      // first row    of current quadrant of A
# Line 250 | Line 245 | public class MatrixMultiply {
245              snd.invoke();
246          }
247      }
253
254
248   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines