com.meliorbis.numerics.generic.primitives.DoubleIndexedReduction 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.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_);
}
}