Class Reduction

java.lang.Object
no.uib.cipr.matrix.distributed.Reduction

@Deprecated public abstract class Reduction extends Object
Deprecated.
the no.uib.cipr.matrix.distributed package 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.
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
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Sets up the output data
    protected abstract void
    initBoolean(boolean[] x)
    Deprecated.
     
    protected abstract void
    initByte(byte[] x)
    Deprecated.
     
    protected abstract void
    initChar(char[] x)
    Deprecated.
     
    protected abstract void
    initDouble(double[] x)
    Deprecated.
     
    protected abstract void
    initFloat(float[] x)
    Deprecated.
     
    protected abstract void
    initInt(int[] x)
    Deprecated.
     
    protected abstract void
    initLong(long[] x)
    Deprecated.
     
    protected abstract void
    initShort(short[] x)
    Deprecated.
     
    void
    op(Object x, Object y)
    Deprecated.
    Adds to the output data
    protected abstract void
    opBoolean(boolean[] x, boolean[] y)
    Deprecated.
     
    protected abstract void
    opByte(byte[] x, byte[] y)
    Deprecated.
     
    protected abstract void
    opChar(char[] x, char[] y)
    Deprecated.
     
    protected abstract void
    opDouble(double[] x, double[] y)
    Deprecated.
     
    protected abstract void
    opFloat(float[] x, float[] y)
    Deprecated.
     
    protected abstract void
    opInt(int[] x, int[] y)
    Deprecated.
     
    protected abstract void
    opLong(long[] x, long[] y)
    Deprecated.
     
    protected abstract void
    opShort(short[] x, short[] y)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Reduction

      public Reduction()
      Deprecated.
  • Method Details

    • init

      public void init(Object x)
      Deprecated.
      Sets up the output data
    • op

      public void op(Object x, Object y)
      Deprecated.
      Adds to the output data
      Parameters:
      x - Output data
      y - 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.