org.ojalgo.array.visitor
Class PrimitiveUnary

java.lang.Object
  extended by org.ojalgo.array.visitor.PrimitiveUnary
All Implemented Interfaces:
Cloneable, Aggregator<Double>, ArrayVisitor<Double>

public class PrimitiveUnary
extends Object
implements Aggregator<Double>


Constructor Summary
PrimitiveUnary(double anInit, UnaryFunction<Double> anOperator, BinaryFunction<Double> anAggregator)
           
 
Method Summary
 double doubleValue()
           
 Double getNumber()
           
 void invoke(double anArg)
           
 void invoke(Double anArg)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveUnary

public PrimitiveUnary(double anInit,
                      UnaryFunction<Double> anOperator,
                      BinaryFunction<Double> anAggregator)
Method Detail

doubleValue

public double doubleValue()
Specified by:
doubleValue in interface Aggregator<Double>

getNumber

public Double getNumber()
Specified by:
getNumber in interface Aggregator<Double>

invoke

public void invoke(double anArg)
Specified by:
invoke in interface ArrayVisitor<Double>

invoke

public void invoke(Double anArg)
Specified by:
invoke in interface ArrayVisitor<Double>

reset

public void reset()
Specified by:
reset in interface ArrayVisitor<Double>