public class UnsignedLongLongAccessType extends GenericLongLongAccessType<UnsignedLongLongAccessType>
dataAccess, img| Constructor and Description |
|---|
UnsignedLongLongAccessType() |
UnsignedLongLongAccessType(BigInteger value) |
UnsignedLongLongAccessType(long value) |
UnsignedLongLongAccessType(LongLongAccess access) |
UnsignedLongLongAccessType(NativeLongAccessImg<?,? extends LongLongAccess> img) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(UnsignedLongLongAccessType c) |
static int |
compare(long a,
long b) |
int |
compareTo(UnsignedLongLongAccessType c) |
UnsignedLongLongAccessType |
copy()
|
NativeLongAccessImg<UnsignedLongLongAccessType,? extends LongLongAccess> |
createSuitableNativeImg(NativeLongAccessImgFactory<UnsignedLongLongAccessType> storageFactory,
long[] dim)
The
NativeLongAccessType creates the NativeLongAccessImg
used for storing image data; based on the given storage strategy and its
size. |
UnsignedLongLongAccessType |
createVariable()
Creates a new
Type variable which can only store one value. |
void |
dec() |
void |
div(UnsignedLongLongAccessType c) |
static long |
divide(long d1,
long d2)
Unsigned division of
d1 by d2. |
UnsignedLongLongAccessType |
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() |
NativeLongAccessTypeFactory<UnsignedLongLongAccessType,?> |
getNativeLongAccessTypeFactory() |
int |
hashCode() |
void |
inc() |
void |
mul(double c) |
void |
mul(float c) |
void |
mul(UnsignedLongLongAccessType 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(UnsignedLongLongAccessType c) |
String |
toString() |
decIndex, decIndex, getBitsPerPixel, getEntitiesPerPixel, getIndexLong, getValue, incIndex, incIndex, set, setValue, updateContainer, updateIndex, valueEqualsequals, getMinIncrement, getRealDouble, getRealFloat, setReal, setRealgetImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, pow, pow, setImaginary, setImaginarycomplexConjugate, setComplexNumber, setComplexNumberclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomplexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginarypowpublic UnsignedLongLongAccessType(NativeLongAccessImg<?,? extends LongLongAccess> img)
public UnsignedLongLongAccessType(long value)
public UnsignedLongLongAccessType(BigInteger value)
public UnsignedLongLongAccessType(LongLongAccess access)
public UnsignedLongLongAccessType()
public NativeLongAccessImg<UnsignedLongLongAccessType,? extends LongLongAccess> createSuitableNativeImg(NativeLongAccessImgFactory<UnsignedLongLongAccessType> 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.storageFactory - which storage strategy is useddim - the dimensionsNativeLongAccessImg where only the
Type knows the BasicType it contains.public UnsignedLongLongAccessType duplicateTypeOnSameNativeImg()
NativeLongAccessTypeNativeType 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 GenericLongLongAccessType<UnsignedLongLongAccessType>public void mul(double c)
mul in interface MulFloatingPointmul in class GenericLongLongAccessType<UnsignedLongLongAccessType>public void add(UnsignedLongLongAccessType c)
add in interface Add<UnsignedLongLongAccessType>add in class GenericLongLongAccessType<UnsignedLongLongAccessType>public void div(UnsignedLongLongAccessType c)
div in interface Div<UnsignedLongLongAccessType>div in class GenericLongLongAccessType<UnsignedLongLongAccessType>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(UnsignedLongLongAccessType c)
mul in interface Mul<UnsignedLongLongAccessType>mul in class GenericLongLongAccessType<UnsignedLongLongAccessType>public void sub(UnsignedLongLongAccessType c)
sub in interface Sub<UnsignedLongLongAccessType>sub in class GenericLongLongAccessType<UnsignedLongLongAccessType>public int hashCode()
hashCode in class GenericLongLongAccessType<UnsignedLongLongAccessType>public void setOne()
setOne in interface SetOnesetOne in class GenericLongLongAccessType<UnsignedLongLongAccessType>public void setZero()
setZero in interface SetZerosetZero in class GenericLongLongAccessType<UnsignedLongLongAccessType>public void inc()
inc in interface RealType<UnsignedLongLongAccessType>inc in class GenericLongLongAccessType<UnsignedLongLongAccessType>public void dec()
dec in interface RealType<UnsignedLongLongAccessType>dec in class GenericLongLongAccessType<UnsignedLongLongAccessType>public String toString()
toString in class GenericLongLongAccessType<UnsignedLongLongAccessType>public long get()
UnsignedLongType.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(UnsignedLongLongAccessType c)
compareTo in interface Comparable<UnsignedLongLongAccessType>compareTo in class GenericLongLongAccessType<UnsignedLongLongAccessType>public static final int compare(long a,
long b)
a - b - a < b, 0 if a == b, 1 if a > b.public UnsignedLongLongAccessType createVariable()
TypeType variable which can only store one value.Type variablepublic UnsignedLongLongAccessType copy()
TypeType variablepublic NativeLongAccessTypeFactory<UnsignedLongLongAccessType,?> getNativeLongAccessTypeFactory()
Copyright © 2015–2022 ImgLib2. All rights reserved.