com.meliorbis.numerics.generic.primitives.DoubleUnaryOp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Numerics Show documentation
Show all versions of Numerics Show documentation
A library for working with large multi-dimensional arrays and the functions they represent
/**
*
*/
package com.meliorbis.numerics.generic.primitives;
import com.meliorbis.numerics.generic.UnaryOp;
/**
* Performs unary operations on double
*
* @author Tobias Grasl
*/
public interface DoubleUnaryOp extends DoubleNaryOp, UnaryOp
{
public double perform(double input_);
@Override
default public Double perform(Double input_)
{
return perform(input_.doubleValue());
}
/* (non-Javadoc)
* @see com.meliorbis.numerics.generic.NaryOp#perform(T[], int)
*/
@Override
default public double perform(double... inputs_) throws E
{
return perform(inputs_[0]);
}
/* (non-Javadoc)
* @see com.meliorbis.numerics.generic.NaryOp#perform(T[], int)
*/
@Override
default public Double perform(Double... inputs_) throws E
{
return perform(inputs_[0].doubleValue());
}
}