org.amino.alg.parallelprefix
Interface BinaryOp<T>

Type Parameters:
T - Type for non-primitive binary operations.
All Known Implementing Classes:
DefaultAddBinaryOp

public interface BinaryOp<T>

Interface for parallel prefix binary operation.

Author:
donawa
See Also:
ParallelPrefix

Method Summary
 byte transform(byte a, byte b)
          Transform two bytes to one.
 char transform(char a, char b)
          Transform two bytes to one.
 double transform(double a, double b)
          Transform two bytes to one.
 float transform(float a, float b)
          Transform two bytes to one.
 int transform(int a, int b)
          Transform two bytes to one.
 long transform(long a, long b)
          Transform two bytes to one.
 short transform(short a, short b)
          Transform two bytes to one.
 T transform(T a, T b)
          Transform two bytes to one.
 

Method Detail

transform

byte transform(byte a,
               byte b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult

transform

char transform(char a,
               char b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult

transform

short transform(short a,
                short b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult

transform

int transform(int a,
              int b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult

transform

long transform(long a,
               long b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult

transform

float transform(float a,
                float b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult

transform

double transform(double a,
                 double b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult

transform

T transform(T a,
            T b)
Transform two bytes to one.

Parameters:
a - op one
b - op two
Returns:
retsult


Copyright © 2008. All Rights Reserved.