Package net.imglib2.view.composite
Class AbstractNumericComposite<T extends NumericType<T>,C extends AbstractNumericComposite<T,C>>
java.lang.Object
net.imglib2.view.composite.AbstractComposite<T>
net.imglib2.view.composite.AbstractNumericComposite<T,C>
- All Implemented Interfaces:
Iterable<T>
,NumericType<C>
,Add<C>
,Div<C>
,Mul<C>
,MulFloatingPoint
,SetOne
,SetZero
,Sub<C>
,ValueEquals<C>
,Type<C>
,Composite<T>
- Direct Known Subclasses:
NumericComposite
,RealComposite
public abstract class AbstractNumericComposite<T extends NumericType<T>,C extends AbstractNumericComposite<T,C>>
extends AbstractComposite<T>
implements NumericType<C>, Iterable<T>
Abstract base class for a vector of
NumericType
scalars. It is a
NumericType
itself, implementing the NumericType
algebra as
element-wise operations.- Author:
- Stephan Saalfeld
-
Field Summary
FieldsFields inherited from class net.imglib2.view.composite.AbstractComposite
d, sourceAccess
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.imglib2.view.composite.AbstractComposite
get
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface net.imglib2.type.Type
copy, createVariable
-
Field Details
-
length
protected final int length -
iterator
-
-
Constructor Details
-
AbstractNumericComposite
-
-
Method Details
-
set
Description copied from interface:Type
Sets the value of anotherType
.- Specified by:
set
in interfaceType<T extends NumericType<T>>
- Parameters:
c
- the new value
-
add
- Specified by:
add
in interfaceAdd<T extends NumericType<T>>
-
sub
- Specified by:
sub
in interfaceSub<T extends NumericType<T>>
-
mul
- Specified by:
mul
in interfaceMul<T extends NumericType<T>>
-
div
- Specified by:
div
in interfaceDiv<T extends NumericType<T>>
-
setZero
public void setZero() -
setOne
public void setOne() -
mul
public void mul(float c) - Specified by:
mul
in interfaceMulFloatingPoint
-
mul
public void mul(double c) - Specified by:
mul
in interfaceMulFloatingPoint
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends NumericType<T>>
-
valueEquals
- Specified by:
valueEquals
in interfaceValueEquals<T extends NumericType<T>>
-