public class UnsignedLongType extends GenericLongType<UnsignedLongType>
dataAccess, img| Constructor and Description |
|---|
UnsignedLongType() |
UnsignedLongType(BigInteger value) |
UnsignedLongType(long value) |
UnsignedLongType(LongAccess access) |
UnsignedLongType(NativeImg<?,? extends LongAccess> img) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(UnsignedLongType c) |
static int |
compare(long a,
long b) |
int |
compareTo(UnsignedLongType c) |
UnsignedLongType |
copy()
|
NativeImg<UnsignedLongType,? extends LongAccess> |
createSuitableNativeImg(NativeImgFactory<UnsignedLongType> storageFactory,
long[] dim)
The
NativeType creates the NativeImg used for storing
image data; based on the given storage strategy and its size. |
UnsignedLongType |
createVariable()
Creates a new
Type variable which can only store one value. |
void |
dec() |
void |
div(UnsignedLongType c) |
static long |
divide(long d1,
long d2)
Unsigned division of
d1 by d2. |
UnsignedLongType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
long |
get()
This method returns the value of the UnsignedLongType as a signed long.
|
BigInteger |
getBigInteger()
This method returns the unsigned representation of this UnsignedLongType
as a
BigInteger. |
int |
getInteger() |
long |
getIntegerLong() |
BigInteger |
getMaxBigIntegerValue()
Returns the true maximum value as a BigInteger, since it cannot be
precisely represented as a
double. |
double |
getMaxValue()
The maximum value that can be stored is
Math.pow( 2, 64 ) - 1,
which can't be represented with exact precision using a double |
double |
getMinValue() |
int |
hashCode() |
void |
inc() |
void |
mul(double c) |
void |
mul(float c) |
void |
mul(UnsignedLongType c) |
void |
set(BigInteger bi) |
void |
set(long value) |
void |
setBigInteger(BigInteger b) |
void |
setInteger(int f) |
void |
setInteger(long f) |
void |
setOne() |
void |
setZero() |
void |
sub(UnsignedLongType c) |
String |
toString() |
decIndex, decIndex, getBitsPerPixel, getEntitiesPerPixel, getIndex, getLong, getValue, incIndex, incIndex, set, setLong, setValue, updateContainer, updateIndex, valueEqualsgetMinIncrement, getRealDouble, getRealFloat, setReal, setRealequals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setImaginary, setImaginarycomplexConjugate, setComplexNumber, setComplexNumberclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomplexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginarypublic UnsignedLongType(NativeImg<?,? extends LongAccess> img)
public UnsignedLongType(long value)
public UnsignedLongType(BigInteger value)
public UnsignedLongType(LongAccess access)
public UnsignedLongType()
public NativeImg<UnsignedLongType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<UnsignedLongType> storageFactory, long[] dim)
NativeTypeNativeType creates the NativeImg 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.public UnsignedLongType duplicateTypeOnSameNativeImg()
NativeTypeNativeType which stores in the same physical array.
This is only used internally.NativeType instance working on the same
NativeImgpublic void mul(float c)
mul in interface MulFloatingPointmul in class GenericLongType<UnsignedLongType>public void mul(double c)
mul in interface MulFloatingPointmul in class GenericLongType<UnsignedLongType>public void add(UnsignedLongType c)
add in interface Add<UnsignedLongType>add in class GenericLongType<UnsignedLongType>public void div(UnsignedLongType c)
div in interface Div<UnsignedLongType>div in class GenericLongType<UnsignedLongType>divide(long, long)public static final long divide(long d1,
long d2)
d1 by d2.
See "Division by Invariant Integers using Multiplication", by Torbjorn
Granlund and Peter L. Montgomery, 1994.
http://gmplib.org/~tege/divcnst-pldi94.pdfArithmeticException - when c equals zero.public void mul(UnsignedLongType c)
mul in interface Mul<UnsignedLongType>mul in class GenericLongType<UnsignedLongType>public void sub(UnsignedLongType c)
sub in interface Sub<UnsignedLongType>sub in class GenericLongType<UnsignedLongType>public int hashCode()
hashCode in class GenericLongType<UnsignedLongType>public void setOne()
setOne in interface SetOnesetOne in class GenericLongType<UnsignedLongType>public void setZero()
setZero in interface SetZerosetZero in class GenericLongType<UnsignedLongType>public void inc()
inc in interface RealType<UnsignedLongType>inc in class GenericLongType<UnsignedLongType>public void dec()
dec in interface RealType<UnsignedLongType>dec in class GenericLongType<UnsignedLongType>public String toString()
toString in class GenericLongType<UnsignedLongType>public long get()
getBigInteger().public BigInteger getBigInteger()
BigInteger.public void set(long value)
public int getInteger()
public long getIntegerLong()
public void setInteger(int f)
public void setInteger(long f)
public void setBigInteger(BigInteger b)
public void set(BigInteger bi)
public double getMaxValue()
Math.pow( 2, 64 ) - 1,
which can't be represented with exact precision using a doublepublic BigInteger getMaxBigIntegerValue()
double.public double getMinValue()
public int compareTo(UnsignedLongType c)
compareTo in interface Comparable<UnsignedLongType>compareTo in class GenericLongType<UnsignedLongType>public static final int compare(long a,
long b)
a - b - a < b, 0 if a == b, 1 if a > b.public UnsignedLongType createVariable()
TypeType variable which can only store one value.Type variablepublic UnsignedLongType copy()
TypeType variableCopyright © 2009–2017 ImgLib2. All rights reserved.