cern.jet.math.tdcomplex
Class DComplexMult
- java.lang.Object
-
- cern.jet.math.tdcomplex.DComplexMult
-
- All Implemented Interfaces:
- DComplexDComplexFunction
public final class DComplexMult extends java.lang.Object implements DComplexDComplexFunction
Only for performance tuning of compute intensive linear algebraic computations. Constructs functions that return one of- a * constant
- a / constant
-
-
Field Summary
Fields Modifier and Type Field and Description double[]multiplicatorPublic read/write access to avoid frequent object construction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]apply(double[] a)Returns the result of the function evaluation.double[]apply(double re, double im)Returns the result of the function evaluation.static DComplexMultdiv(double[] constant)a / constant.static DComplexMultmult(double[] constant)a * constant.
-
-
-
Field Detail
-
multiplicator
public double[] multiplicator
Public read/write access to avoid frequent object construction.
-
-
Method Detail
-
apply
public final double[] apply(double[] a)
Returns the result of the function evaluation.- Specified by:
applyin interfaceDComplexDComplexFunction- Parameters:
a- an argument passed to the function.- Returns:
- the result of the function.
-
apply
public final double[] apply(double re, double im)Returns the result of the function evaluation.- Specified by:
applyin interfaceDComplexDComplexFunction- Parameters:
re- real part of an argument passed to the functionim- imaginary part of an argument passed to the function- Returns:
- the result of the function.
-
div
public static DComplexMult div(double[] constant)
a / constant.
-
mult
public static DComplexMult mult(double[] constant)
a * constant.
-
-
DMelt 3.0 © DataMelt by jWork.ORG