org.ojalgo.array.visitor
Class ReferenceTypeUnary<N extends Number>
java.lang.Object
org.ojalgo.array.visitor.ReferenceTypeUnary<N>
- All Implemented Interfaces:
- Cloneable, Aggregator<N>, ArrayVisitor<N>
public class ReferenceTypeUnary<N extends Number>
- extends Object
- implements Aggregator<N>
ReferenceTypeUnary
public ReferenceTypeUnary(N anInit,
UnaryFunction<N> anOperator,
BinaryFunction<N> anAggregator)
doubleValue
public double doubleValue()
- Specified by:
doubleValue in interface Aggregator<N extends Number>
getNumber
public N getNumber()
- Specified by:
getNumber in interface Aggregator<N extends Number>
invoke
public void invoke(double anArg)
- Specified by:
invoke in interface ArrayVisitor<N extends Number>
invoke
public void invoke(N anArg)
- Specified by:
invoke in interface ArrayVisitor<N extends Number>
reset
public void reset()
- Specified by:
reset in interface ArrayVisitor<N extends Number>