All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.meliorbis.numerics.generic.primitives.DoubleUnaryOp Maven / Gradle / Ivy

Go to download

A library for working with large multi-dimensional arrays and the functions they represent

There is a newer version: 1.2
Show newest version
/**
 * 
 */
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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy