Package cern.colt.matrix

Examples of cern.colt.matrix.DoubleMatrix3D.zAssign27Neighbors()


  if (convergenceIterations%2 != 0) convergenceIterations++; // odd -> make it even

  int i=0;
  while (i<maxIterations) { // do two steps at a time for efficiency
    A.zAssign27Neighbors(B,function);
    B.zAssign27Neighbors(A,function);
    i=i+2;
    if (i%convergenceIterations == 0 && hasConverged!=null) {
      if (hasConverged.apply(A)) return i;
    }
  }
View Full Code Here


  if (convergenceIterations%2 != 0) convergenceIterations++; // odd -> make it even

  int i=0;
  while (i<maxIterations) { // do two steps at a time for efficiency
    A.zAssign27Neighbors(B,function);
    B.zAssign27Neighbors(A,function);
    i=i+2;
    if (i%convergenceIterations == 0 && hasConverged!=null) {
      if (hasConverged.apply(A)) return i;
    }
  }
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.