public class ComplexDoubleLongAccessType extends AbstractComplexType<ComplexDoubleLongAccessType> implements NativeLongAccessType<ComplexDoubleLongAccessType>
| Modifier and Type | Field and Description |
|---|---|
protected DoubleLongAccess |
dataAccess |
protected NativeLongAccessImg<?,? extends DoubleLongAccess> |
img |
| Constructor and Description |
|---|
ComplexDoubleLongAccessType() |
ComplexDoubleLongAccessType(double r,
double i) |
ComplexDoubleLongAccessType(DoubleLongAccess access) |
ComplexDoubleLongAccessType(NativeLongAccessImg<?,? extends DoubleLongAccess> complexfloatStorage) |
| Modifier and Type | Method and Description |
|---|---|
ComplexDoubleLongAccessType |
copy()
|
NativeLongAccessImg<ComplexDoubleLongAccessType,? extends DoubleLongAccess> |
createSuitableNativeImg(NativeLongAccessImgFactory<ComplexDoubleLongAccessType> storageFactory,
long[] dim)
The
NativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. |
ComplexDoubleLongAccessType |
createVariable()
Creates a new
Type variable which can only store one value. |
void |
decIndex() |
void |
decIndex(long decrement)
Decrease the index into the current data array by
decrement
steps. |
ComplexDoubleLongAccessType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
Fraction |
getEntitiesPerPixel()
Get the number of entities in the storage array required to store one
pixel value.
|
double |
getImaginaryDouble() |
float |
getImaginaryFloat() |
long |
getIndexLong()
Get the current index into the current data array.
|
NativeLongAccessTypeFactory<ComplexDoubleLongAccessType,?> |
getNativeLongAccessTypeFactory() |
double |
getRealDouble() |
float |
getRealFloat() |
void |
incIndex() |
void |
incIndex(long increment)
Increases the index into the current data array by
increment
steps. |
void |
set(ComplexDoubleLongAccessType c)
Sets the value of another
Type. |
void |
set(double r,
double i) |
void |
setImaginary(double i) |
void |
setImaginary(float i) |
void |
setReal(double r) |
void |
setReal(float r) |
void |
updateContainer(Object c) |
void |
updateIndex(long index)
Set the index into the current data array.
|
boolean |
valueEquals(ComplexDoubleLongAccessType t) |
add, complexConjugate, div, equals, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, hashCode, mul, mul, mul, pow, pow, setComplexNumber, setComplexNumber, setOne, setZero, sub, toStringprotected final NativeLongAccessImg<?,? extends DoubleLongAccess> img
protected DoubleLongAccess dataAccess
public ComplexDoubleLongAccessType(NativeLongAccessImg<?,? extends DoubleLongAccess> complexfloatStorage)
public ComplexDoubleLongAccessType(double r,
double i)
public ComplexDoubleLongAccessType(DoubleLongAccess access)
public ComplexDoubleLongAccessType()
public NativeLongAccessImg<ComplexDoubleLongAccessType,? extends DoubleLongAccess> createSuitableNativeImg(NativeLongAccessImgFactory<ComplexDoubleLongAccessType> storageFactory, long[] dim)
NativeLongAccessTypeNativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. It basically only decides here which BasicType it uses (float, int,
byte, bit, ...) and how many entities per pixel it needs (e.g. 2 floats
per pixel for a complex number). This enables the separation of
containers and the basic types.createSuitableNativeImg in interface NativeLongAccessType<ComplexDoubleLongAccessType>storageFactory - which storage strategy is useddim - the dimensionsNativeLongAccessImg where only the
Type knows the BasicType it contains.public void updateContainer(Object c)
updateContainer in interface NativeLongAccessType<ComplexDoubleLongAccessType>public ComplexDoubleLongAccessType duplicateTypeOnSameNativeImg()
NativeLongAccessTypeNativeType which stores in the same physical array.
This is only used internally.duplicateTypeOnSameNativeImg in interface NativeLongAccessType<ComplexDoubleLongAccessType>NativeType instance working on the same
NativeImgpublic float getRealFloat()
getRealFloat in interface ComplexType<ComplexDoubleLongAccessType>public double getRealDouble()
getRealDouble in interface ComplexType<ComplexDoubleLongAccessType>public float getImaginaryFloat()
getImaginaryFloat in interface ComplexType<ComplexDoubleLongAccessType>public double getImaginaryDouble()
getImaginaryDouble in interface ComplexType<ComplexDoubleLongAccessType>public void setReal(float r)
setReal in interface ComplexType<ComplexDoubleLongAccessType>public void setReal(double r)
setReal in interface ComplexType<ComplexDoubleLongAccessType>public void setImaginary(float i)
setImaginary in interface ComplexType<ComplexDoubleLongAccessType>public void setImaginary(double i)
setImaginary in interface ComplexType<ComplexDoubleLongAccessType>public void set(double r,
double i)
public void set(ComplexDoubleLongAccessType c)
TypeType.set in interface Type<ComplexDoubleLongAccessType>set in class AbstractComplexType<ComplexDoubleLongAccessType>c - the new valuepublic ComplexDoubleLongAccessType createVariable()
TypeType variable which can only store one value.createVariable in interface Type<ComplexDoubleLongAccessType>Type variablepublic ComplexDoubleLongAccessType copy()
Typecopy in interface Type<ComplexDoubleLongAccessType>Type variablepublic Fraction getEntitiesPerPixel()
NativeLongAccessTypegetEntitiesPerPixel in interface NativeLongAccessType<ComplexDoubleLongAccessType>public void updateIndex(long index)
NativeLongAccessType
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
updateIndex in interface NativeLongAccessType<ComplexDoubleLongAccessType>index - the new array indexpublic void incIndex()
incIndex in interface NativeLongAccessType<ComplexDoubleLongAccessType>public void incIndex(long increment)
NativeLongAccessTypeincrement
steps.
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
incIndex in interface NativeLongAccessType<ComplexDoubleLongAccessType>increment - how many stepspublic void decIndex()
decIndex in interface NativeLongAccessType<ComplexDoubleLongAccessType>public void decIndex(long decrement)
NativeLongAccessTypedecrement
steps.
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
decIndex in interface NativeLongAccessType<ComplexDoubleLongAccessType>decrement - how many stepspublic long getIndexLong()
NativeLongAccessType
This is used by accessors (e.g., a Cursor) to position the
NativeLongAccessType in the container.
getIndexLong in interface NativeLongAccessType<ComplexDoubleLongAccessType>public boolean valueEquals(ComplexDoubleLongAccessType t)
valueEquals in interface ValueEquals<ComplexDoubleLongAccessType>valueEquals in class AbstractComplexType<ComplexDoubleLongAccessType>public NativeLongAccessTypeFactory<ComplexDoubleLongAccessType,?> getNativeLongAccessTypeFactory()
getNativeLongAccessTypeFactory in interface NativeLongAccessType<ComplexDoubleLongAccessType>Copyright © 2015–2022 ImgLib2. All rights reserved.