public class ComplexFloatLongAccessType extends AbstractComplexType<ComplexFloatLongAccessType> implements NativeLongAccessType<ComplexFloatLongAccessType>
Modifier and Type | Field and Description |
---|---|
protected FloatLongAccess |
dataAccess |
protected NativeLongAccessImg<?,? extends FloatLongAccess> |
img |
Constructor and Description |
---|
ComplexFloatLongAccessType() |
ComplexFloatLongAccessType(float r,
float i) |
ComplexFloatLongAccessType(FloatLongAccess access) |
ComplexFloatLongAccessType(NativeLongAccessImg<?,? extends FloatLongAccess> complexfloatStorage) |
Modifier and Type | Method and Description |
---|---|
void |
add(ComplexFloatLongAccessType c) |
void |
complexConjugate() |
ComplexFloatLongAccessType |
copy()
|
NativeLongAccessImg<ComplexFloatLongAccessType,? extends FloatLongAccess> |
createSuitableNativeImg(NativeLongAccessImgFactory<ComplexFloatLongAccessType> storageFactory,
long[] dim)
The
NativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. |
ComplexFloatLongAccessType |
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. |
void |
div(ComplexFloatLongAccessType c) |
ComplexFloatLongAccessType |
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<ComplexFloatLongAccessType,?> |
getNativeLongAccessTypeFactory() |
double |
getRealDouble() |
float |
getRealFloat() |
void |
incIndex() |
void |
incIndex(long increment)
Increases the index into the current data array by
increment
steps. |
void |
mul(ComplexFloatLongAccessType t) |
void |
set(ComplexFloatLongAccessType c)
Sets the value of another
Type . |
void |
set(float r,
float i) |
void |
setImaginary(double i) |
void |
setImaginary(float i) |
void |
setReal(double r) |
void |
setReal(float r) |
void |
sub(ComplexFloatLongAccessType c) |
void |
switchRealComplex() |
void |
updateContainer(Object c) |
void |
updateIndex(long index)
Set the index into the current data array.
|
boolean |
valueEquals(ComplexFloatLongAccessType t) |
equals, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, hashCode, mul, mul, pow, pow, setComplexNumber, setComplexNumber, setOne, setZero, toString
protected final NativeLongAccessImg<?,? extends FloatLongAccess> img
protected FloatLongAccess dataAccess
public ComplexFloatLongAccessType(NativeLongAccessImg<?,? extends FloatLongAccess> complexfloatStorage)
public ComplexFloatLongAccessType(float r, float i)
public ComplexFloatLongAccessType(FloatLongAccess access)
public ComplexFloatLongAccessType()
public NativeLongAccessImg<ComplexFloatLongAccessType,? extends FloatLongAccess> createSuitableNativeImg(NativeLongAccessImgFactory<ComplexFloatLongAccessType> storageFactory, long[] dim)
NativeLongAccessType
NativeLongAccessType
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<ComplexFloatLongAccessType>
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<ComplexFloatLongAccessType>
public ComplexFloatLongAccessType duplicateTypeOnSameNativeImg()
NativeLongAccessType
NativeType
which stores in the same physical array.
This is only used internally.duplicateTypeOnSameNativeImg
in interface NativeLongAccessType<ComplexFloatLongAccessType>
NativeType
instance working on the same
NativeImg
public float getRealFloat()
getRealFloat
in interface ComplexType<ComplexFloatLongAccessType>
public double getRealDouble()
getRealDouble
in interface ComplexType<ComplexFloatLongAccessType>
public float getImaginaryFloat()
getImaginaryFloat
in interface ComplexType<ComplexFloatLongAccessType>
public double getImaginaryDouble()
getImaginaryDouble
in interface ComplexType<ComplexFloatLongAccessType>
public void setReal(float r)
setReal
in interface ComplexType<ComplexFloatLongAccessType>
public void setReal(double r)
setReal
in interface ComplexType<ComplexFloatLongAccessType>
public void setImaginary(float i)
setImaginary
in interface ComplexType<ComplexFloatLongAccessType>
public void setImaginary(double i)
setImaginary
in interface ComplexType<ComplexFloatLongAccessType>
public void set(float r, float i)
public void add(ComplexFloatLongAccessType c)
add
in interface Add<ComplexFloatLongAccessType>
add
in class AbstractComplexType<ComplexFloatLongAccessType>
public void div(ComplexFloatLongAccessType c)
div
in interface Div<ComplexFloatLongAccessType>
div
in class AbstractComplexType<ComplexFloatLongAccessType>
public void mul(ComplexFloatLongAccessType t)
mul
in interface Mul<ComplexFloatLongAccessType>
mul
in class AbstractComplexType<ComplexFloatLongAccessType>
public void sub(ComplexFloatLongAccessType c)
sub
in interface Sub<ComplexFloatLongAccessType>
sub
in class AbstractComplexType<ComplexFloatLongAccessType>
public void complexConjugate()
complexConjugate
in interface ComplexType<ComplexFloatLongAccessType>
complexConjugate
in class AbstractComplexType<ComplexFloatLongAccessType>
public void switchRealComplex()
public void set(ComplexFloatLongAccessType c)
Type
Type
.set
in interface Type<ComplexFloatLongAccessType>
set
in class AbstractComplexType<ComplexFloatLongAccessType>
c
- the new valuepublic ComplexFloatLongAccessType createVariable()
Type
Type
variable which can only store one value.createVariable
in interface Type<ComplexFloatLongAccessType>
Type
variablepublic ComplexFloatLongAccessType copy()
Type
copy
in interface Type<ComplexFloatLongAccessType>
Type
variablepublic Fraction getEntitiesPerPixel()
NativeLongAccessType
getEntitiesPerPixel
in interface NativeLongAccessType<ComplexFloatLongAccessType>
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<ComplexFloatLongAccessType>
index
- the new array indexpublic void incIndex()
incIndex
in interface NativeLongAccessType<ComplexFloatLongAccessType>
public void incIndex(long increment)
NativeLongAccessType
increment
steps.
This is used by accessors (e.g., a Cursor
) to position the
NativeLongAccessType
in the container.
incIndex
in interface NativeLongAccessType<ComplexFloatLongAccessType>
increment
- how many stepspublic void decIndex()
decIndex
in interface NativeLongAccessType<ComplexFloatLongAccessType>
public void decIndex(long decrement)
NativeLongAccessType
decrement
steps.
This is used by accessors (e.g., a Cursor
) to position the
NativeLongAccessType
in the container.
decIndex
in interface NativeLongAccessType<ComplexFloatLongAccessType>
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<ComplexFloatLongAccessType>
public boolean valueEquals(ComplexFloatLongAccessType t)
valueEquals
in interface ValueEquals<ComplexFloatLongAccessType>
valueEquals
in class AbstractComplexType<ComplexFloatLongAccessType>
public NativeLongAccessTypeFactory<ComplexFloatLongAccessType,?> getNativeLongAccessTypeFactory()
getNativeLongAccessTypeFactory
in interface NativeLongAccessType<ComplexFloatLongAccessType>
Copyright © 2015–2022 ImgLib2. All rights reserved.