Package no.uib.cipr.matrix.distributed
Class Reduction
java.lang.Object
no.uib.cipr.matrix.distributed.Reduction
Deprecated.
Performs a reduction operation. When performing a reduction, start with the
value return by the init function, for example:
int[] x, y; Reduction r; // ... r.initInt(x); r.opInt(x, y);
Many predefined reductions are available in
Reductions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Sets up the output dataprotected abstract voidinitBoolean(boolean[] x) Deprecated.protected abstract voidinitByte(byte[] x) Deprecated.protected abstract voidinitChar(char[] x) Deprecated.protected abstract voidinitDouble(double[] x) Deprecated.protected abstract voidinitFloat(float[] x) Deprecated.protected abstract voidinitInt(int[] x) Deprecated.protected abstract voidinitLong(long[] x) Deprecated.protected abstract voidinitShort(short[] x) Deprecated.voidDeprecated.Adds to the output dataprotected abstract voidopBoolean(boolean[] x, boolean[] y) Deprecated.protected abstract voidopByte(byte[] x, byte[] y) Deprecated.protected abstract voidopChar(char[] x, char[] y) Deprecated.protected abstract voidopDouble(double[] x, double[] y) Deprecated.protected abstract voidopFloat(float[] x, float[] y) Deprecated.protected abstract voidopInt(int[] x, int[] y) Deprecated.protected abstract voidopLong(long[] x, long[] y) Deprecated.protected abstract voidopShort(short[] x, short[] y) Deprecated.
-
Constructor Details
-
Reduction
public Reduction()Deprecated.
-
-
Method Details
-
init
Deprecated.Sets up the output data -
op
Deprecated.Adds to the output data- Parameters:
x- Output datay- New input data
-
initBoolean
protected abstract void initBoolean(boolean[] x) Deprecated. -
initByte
protected abstract void initByte(byte[] x) Deprecated. -
initChar
protected abstract void initChar(char[] x) Deprecated. -
initShort
protected abstract void initShort(short[] x) Deprecated. -
initInt
protected abstract void initInt(int[] x) Deprecated. -
initFloat
protected abstract void initFloat(float[] x) Deprecated. -
initLong
protected abstract void initLong(long[] x) Deprecated. -
initDouble
protected abstract void initDouble(double[] x) Deprecated. -
opBoolean
protected abstract void opBoolean(boolean[] x, boolean[] y) Deprecated. -
opByte
protected abstract void opByte(byte[] x, byte[] y) Deprecated. -
opChar
protected abstract void opChar(char[] x, char[] y) Deprecated. -
opShort
protected abstract void opShort(short[] x, short[] y) Deprecated. -
opInt
protected abstract void opInt(int[] x, int[] y) Deprecated. -
opFloat
protected abstract void opFloat(float[] x, float[] y) Deprecated. -
opLong
protected abstract void opLong(long[] x, long[] y) Deprecated. -
opDouble
protected abstract void opDouble(double[] x, double[] y) Deprecated.
-
no.uib.cipr.matrix.distributedpackage has been deprecated because of a number of hard to fix concurrency bugs. It is distributed only for backwards compatibility, but is not recommended. The utility of this package is questionable, as it does not allow distribution of computation between JVMs or across a network. For many people, distributed computing of multiple matrices can be achieved at a user-level through the JPPF Framework. Users who need to deal with few very large matrices may wish to implement their own storage classes and solvers using JPPF, but this will not be supported directly in matrix-toolkits-java.