Class Reduction


  • @Deprecated
    public abstract class Reduction
    extends java.lang.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
      Reduction()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void init​(java.lang.Object x)
      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​(java.lang.Object x, java.lang.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 Detail

      • Reduction

        public Reduction()
        Deprecated.
    • Method Detail

      • init

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

        public void op​(java.lang.Object x,
                       java.lang.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.