public class Stencil extends Object
Modifier | Constructor and Description |
---|---|
protected |
Stencil()
Makes this class non instantiable, but still let's others inherit from it.
|
Modifier and Type | Method and Description |
---|---|
static int |
stencil27(DoubleMatrix3D A,
Double27Function function,
int maxIterations,
DoubleMatrix3DProcedure hasConverged,
int convergenceIterations)
27 point stencil operation.
|
static int |
stencil9(DoubleMatrix2D A,
Double9Function function,
int maxIterations,
DoubleMatrix2DProcedure hasConverged,
int convergenceIterations)
9 point stencil operation.
|
protected Stencil()
public static int stencil27(DoubleMatrix3D A, Double27Function function, int maxIterations, DoubleMatrix3DProcedure hasConverged, int convergenceIterations)
A
- the matrix to operate on.function
- the function to be applied to each window.maxIterations
- the maximum number of times the stencil shall be applied to the matrix.
Should be a multiple of 2 because two iterations are always done in one atomic step.hasConverged
- Convergence condition; will return before maxIterations are done when hasConverged.apply(A)==true.
Set this parameter to null to indicate that no convergence checks shall be made.convergenceIterations
- the number of iterations to pass between each convergence check.
(Since a convergence may be expensive, you may want to do it only every 2,4 or 8 iterations.)public static int stencil9(DoubleMatrix2D A, Double9Function function, int maxIterations, DoubleMatrix2DProcedure hasConverged, int convergenceIterations)
A
- the matrix to operate on.function
- the function to be applied to each window.maxIterations
- the maximum number of times the stencil shall be applied to the matrix.
Should be a multiple of 2 because two iterations are always done in one atomic step.hasConverged
- Convergence condition; will return before maxIterations are done when hasConverged.apply(A)==true.
Set this parameter to null to indicate that no convergence checks shall be made.convergenceIterations
- the number of iterations to pass between each convergence check.
(Since a convergence may be expensive, you may want to do it only every 2,4 or 8 iterations.)Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.