Examples of FJTask


Examples of EDU.oswego.cs.dl.util.concurrent.FJTask

}
protected void run(final DoubleMatrix2D[] blocksA, final DoubleMatrix2D[] blocksB, final double[] results, final Matrix2DMatrix2DFunction function) {
  final FJTask[] subTasks = new FJTask[blocksA.length];
  for (int i=0; i<blocksA.length; i++) {
    final int k = i;
    subTasks[i] = new FJTask() {
      public void run() {
        double result = function.apply(blocksA[k],blocksB != null ? blocksB[k] : null);
        if (results!=null) results[k] = result;
        //System.out.print(".");
      }
    };
  }

  // run tasks and wait for completion
  try {
    this.taskGroup.invoke(
      new FJTask() {
        public void run() { 
          coInvoke(subTasks)
        }
      }
    );
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.FJTask

      AA = A.viewPart(offset,0,span,n);
      BB = B;
      CC = C.viewPart(offset,0,span,p);
    }
       
    subTasks[i] = new FJTask() {
      public void run() {
        seqBlas.dgemm(transposeA,transposeB,alpha,AA,BB,beta,CC);
        //System.out.println("Hello "+offset);
      }
    };
  }
 
  // run tasks and wait for completion
  try {
    this.smp.taskGroup.invoke(
      new FJTask() {
        public void run() { 
          coInvoke(subTasks)
        }
      }
    );
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.FJTask

    // split A along rows into blocks
    final DoubleMatrix2D AA = A.viewPart(offset,0,span,n);
    final DoubleMatrix1D yy = y.viewPart(offset,span);
       
    subTasks[i] = new FJTask() {
      public void run() {
        seqBlas.dgemv(transposeA,alpha,AA,x,beta,yy);
        //System.out.println("Hello "+offset);
      }
    };
  }
 
  // run tasks and wait for completion
  try {
    this.smp.taskGroup.invoke(
      new FJTask() {
        public void run() { 
          coInvoke(subTasks)
        }
      }
    );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.