FileDocCategorySizeDatePackage
LoopInner.javaAPI DocExample2444Thu Feb 04 16:10:44 GMT 1999None

LoopInner

public class LoopInner extends Object implements ScaleTester

Fields Summary
private float[]
lookupValues
private int
j
private int
nThreads
private int
nRows
private int
nCols
Constructors Summary
Methods Summary
public float[][]doCalc()

		for (int i = 0; i < nCols; i++) {
			lookupValues[0][i] = 0;
		}
		LoopInnerHandler loop = new LoopInnerHandler(nCols, nThreads);
		// Use global j
		for (j = 1; j < nRows; j++) {
			loop.loopProcess();
		}
		return lookupValues;
	
public voidinit(int nRows, int nCols, int nThreads)

		this.nThreads = nThreads;
		this.nRows = nRows;
		this.nCols = nCols;
		lookupValues = new float[nRows][];
		for (int k = 0; k < nRows; k++) {
			lookupValues[k] = new float[nCols];
		}