public abstract class AbstractNumericComposite<T extends NumericType<T>,C extends AbstractNumericComposite<T,C>> extends AbstractComposite<T> implements NumericType<C>, Iterable<T>
NumericType scalars. It is a
NumericType itself, implementing the NumericType algebra as
element-wise operations.| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T> |
iterator |
protected int |
length |
d, sourceAccess| Constructor and Description |
|---|
AbstractNumericComposite(RandomAccess<T> sourceAccess,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(C c) |
void |
div(C c) |
Iterator<T> |
iterator() |
void |
mul(C c) |
void |
mul(double c) |
void |
mul(float c) |
void |
pow(C c) |
void |
pow(double power) |
void |
set(C c)
Sets the value of another
Type. |
void |
setOne() |
void |
setZero() |
void |
sub(C c) |
boolean |
valueEquals(C t) |
getclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, createVariableforEach, spliteratorprotected final int length
protected final Iterator<T extends NumericType<T>> iterator
public AbstractNumericComposite(RandomAccess<T> sourceAccess, int length)
public void add(C c)
public void sub(C c)
public void mul(C c)
public void div(C c)
public void pow(C c)
public void pow(double power)
pow in interface PowFloatingPointpublic void mul(float c)
mul in interface MulFloatingPointpublic void mul(double c)
mul in interface MulFloatingPointpublic Iterator<T> iterator()
iterator in interface Iterable<T extends NumericType<T>>public boolean valueEquals(C t)
valueEquals in interface ValueEquals<C extends AbstractNumericComposite<T,C>>Copyright © 2015–2022 ImgLib2. All rights reserved.