Parallel Colt 0.7.2

cern.jet.math.tfcomplex
Class FComplexMult

java.lang.Object
  extended by cern.jet.math.tfcomplex.FComplexMult
All Implemented Interfaces:
FComplexFComplexFunction

public final class FComplexMult
extends Object
implements FComplexFComplexFunction

Only for performance tuning of compute intensive linear algebraic computations. Constructs functions that return one of

a is variable, constant is fixed, but for performance reasons publicly accessible. Intended to be passed to matrix.assign(function) methods.


Field Summary
 float[] multiplicator
          Public read/write access to avoid frequent object construction.
 
Method Summary
 float[] apply(float[] a)
          Returns the result of the function evaluation.
 float[] apply(float re, float im)
          Returns the result of the function evaluation.
static FComplexMult div(float[] constant)
          a / constant.
static FComplexMult mult(float[] constant)
          a * constant.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

multiplicator

public float[] multiplicator
Public read/write access to avoid frequent object construction.

Method Detail

apply

public final float[] apply(float[] a)
Returns the result of the function evaluation.

Specified by:
apply in interface FComplexFComplexFunction
Parameters:
a - an argument passed to the function.
Returns:
the result of the function.

apply

public final float[] apply(float re,
                           float im)
Returns the result of the function evaluation.

Specified by:
apply in interface FComplexFComplexFunction
Parameters:
re - real part of an argument passed to the function
im - imaginary part of an argument passed to the function
Returns:
the result of the function.

div

public static FComplexMult div(float[] constant)
a / constant.


mult

public static FComplexMult mult(float[] constant)
a * constant.


Parallel Colt 0.7.2

Jump to the Parallel Colt Homepage