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

com.meliorbis.numerics.generic.primitives.DoubleIndexedReduction 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.NumericsException;
import com.meliorbis.numerics.generic.SubSpaceSplitIterator;
import com.meliorbis.numerics.generic.impl.IndexedReduction;

public interface DoubleIndexedReduction extends IndexedReduction
{
	double perform(DoubleSubspaceSplitIterator iterator_) throws E;
	
	@Override
	default Double perform(SubSpaceSplitIterator iterator_) throws E
	{
		if(!(iterator_ instanceof DoubleSubspaceSplitIterator))
		{
			throw new NumericsException("Calling primitive reduction with non-primitive iterator");
		}
		
		return perform((DoubleSubspaceSplitIterator)iterator_);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy