Parallel Colt 0.9.4

cern.jet.math.tlong
Class LongMult

java.lang.Object
  extended by cern.jet.math.tlong.LongMult
All Implemented Interfaces:
LongFunction

public final class LongMult
extends Object
implements LongFunction

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

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


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

Field Detail

multiplicator

public long multiplicator
Public read/write access to avoid frequent object construction.

Method Detail

apply

public final long apply(long a)
Returns the result of the function evaluation.

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

div

public static LongMult div(long constant)
a / constant.


mult

public static LongMult mult(long constant)
a * constant.


Parallel Colt 0.9.4

Jump to the Parallel Colt Homepage