Package | Description |
---|---|
org.apfloat |
The apfloat Application Programming Interface (API).
|
org.apfloat.internal |
Default implementations of the apfloat Service Provider Interface (SPI).
|
org.apfloat.samples |
Sample applications demonstrating apfloat use.
|
org.apfloat.spi |
The apfloat Service Provider Interface (SPI).
|
Modifier and Type | Class and Description |
---|---|
class |
ApfloatConfigurationException
Exception indicating an error in the apfloat configuration.
|
class |
InfiniteExpansionException
Exception indicating that the result of an operation
would have infinite size.
|
class |
LossOfPrecisionException
Exception indicating a result that would have no significant digits.
|
class |
OverflowException
Exception indicating an overflow in a calculation.
|
Modifier and Type | Method and Description |
---|---|
static Apfloat |
ApcomplexMath.abs(Apcomplex z)
Absolute value.
|
Apfloat |
FixedPrecisionApcomplexHelper.abs(Apcomplex z)
Absolute value.
|
Apfloat |
FixedPrecisionApfloatHelper.abs(Apfloat x)
Absolute value.
|
static Apfloat |
ApfloatMath.abs(Apfloat x)
Absolute value.
|
static Apint |
ApintMath.abs(Apint x)
Absolute value.
|
static Aprational |
AprationalMath.abs(Aprational x)
Absolute value.
|
static Apcomplex |
ApcomplexMath.acos(Apcomplex z)
Inverse cosine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.acos(Apcomplex z)
Arc cosine.
|
Apfloat |
FixedPrecisionApfloatHelper.acos(Apfloat x)
Arc cosine.
|
static Apfloat |
ApfloatMath.acos(Apfloat x)
Inverse cosine.
|
static Apcomplex |
ApcomplexMath.acosh(Apcomplex z)
Inverse hyperbolic cosine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.acosh(Apcomplex z)
Hyperbolic arc cosine.
|
Apfloat |
FixedPrecisionApfloatHelper.acosh(Apfloat x)
Hyperbolic arc cosine.
|
static Apfloat |
ApfloatMath.acosh(Apfloat x)
Inverse hyperbolic cosine.
|
Apcomplex |
Apcomplex.add(Apcomplex z)
Adds two apcomplex numbers.
|
Apcomplex |
FixedPrecisionApcomplexHelper.add(Apcomplex z,
Apcomplex w)
Addition.
|
Apfloat |
Apfloat.add(Apfloat x)
Adds two apfloats.
|
Apfloat |
FixedPrecisionApfloatHelper.add(Apfloat x,
Apfloat y)
Addition.
|
Apint |
Apint.add(Apint x)
Adds two apints.
|
Aprational |
Aprational.add(Aprational x)
Adds two aprational numbers.
|
static Apcomplex |
ApcomplexMath.agm(Apcomplex a,
Apcomplex b)
Arithmetic-geometric mean.
|
Apcomplex |
FixedPrecisionApcomplexHelper.agm(Apcomplex a,
Apcomplex b)
Arithmetic-geometric mean.
|
Apfloat |
FixedPrecisionApfloatHelper.agm(Apfloat a,
Apfloat b)
Arithmetic-geometric mean.
|
static Apfloat |
ApfloatMath.agm(Apfloat a,
Apfloat b)
Arithmetic-geometric mean.
|
static Apcomplex[] |
ApcomplexMath.allRoots(Apcomplex z,
int n)
All values of the positive integer root.
|
Apcomplex[] |
FixedPrecisionApcomplexHelper.allRoots(Apcomplex z,
int n)
All branches of a root.
|
static Apfloat |
ApcomplexMath.arg(Apcomplex z)
Angle of the complex vector in the complex plane.
|
Apfloat |
FixedPrecisionApcomplexHelper.arg(Apcomplex z)
Complex angle.
|
static Apcomplex |
ApcomplexMath.asin(Apcomplex z)
Inverse sine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.asin(Apcomplex z)
Arc sine.
|
Apfloat |
FixedPrecisionApfloatHelper.asin(Apfloat x)
Arc sine.
|
static Apfloat |
ApfloatMath.asin(Apfloat x)
Inverse sine.
|
static Apcomplex |
ApcomplexMath.asinh(Apcomplex z)
Inverse hyperbolic sine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.asinh(Apcomplex z)
Hyperbolic arc sine.
|
Apfloat |
FixedPrecisionApfloatHelper.asinh(Apfloat x)
Hyperbolic arc sine.
|
static Apfloat |
ApfloatMath.asinh(Apfloat x)
Inverse hyperbolic sine.
|
static Apcomplex |
ApcomplexMath.atan(Apcomplex z)
Inverse tangent.
|
Apcomplex |
FixedPrecisionApcomplexHelper.atan(Apcomplex z)
Arc tangent.
|
Apfloat |
FixedPrecisionApfloatHelper.atan(Apfloat x)
Arc tangent.
|
static Apfloat |
ApfloatMath.atan(Apfloat x)
Inverse tangent.
|
Apfloat |
FixedPrecisionApfloatHelper.atan2(Apfloat x,
Apfloat y)
Angle of point.
|
static Apfloat |
ApfloatMath.atan2(Apfloat x,
Apfloat y)
Converts cartesian coordinates to polar coordinates.
|
static Apcomplex |
ApcomplexMath.atanh(Apcomplex z)
Inverse hyperbolic tangent.
|
Apcomplex |
FixedPrecisionApcomplexHelper.atanh(Apcomplex z)
Hyperbolic arc tangent.
|
Apfloat |
FixedPrecisionApfloatHelper.atanh(Apfloat x)
Hyperbolic arc tangent.
|
static Apfloat |
ApfloatMath.atanh(Apfloat x)
Inverse hyperbolic tangent.
|
static Apcomplex |
ApcomplexMath.cbrt(Apcomplex z)
Cube root.
|
Apcomplex |
FixedPrecisionApcomplexHelper.cbrt(Apcomplex z)
Cube root.
|
Apfloat |
FixedPrecisionApfloatHelper.cbrt(Apfloat x)
Cube root.
|
static Apfloat |
ApfloatMath.cbrt(Apfloat x)
Cube root.
|
static Apint[] |
ApintMath.cbrt(Apint x)
Cube root and remainder.
|
Apint |
Apfloat.ceil()
Ceiling function.
|
Apint |
Aprational.ceil()
Ceiling function.
|
Apfloat |
FixedPrecisionApfloatHelper.ceil(Apfloat x)
Ceiling function.
|
static Apint |
ApfloatMath.ceil(Apfloat x)
Ceiling function.
|
Apcomplex |
Apcomplex.conj()
Returns the complex conjugate of this apcomplex.
|
Apcomplex |
FixedPrecisionApcomplexHelper.conj(Apcomplex z)
Complex conjugate.
|
Apfloat |
FixedPrecisionApfloatHelper.copySign(Apfloat x,
Apfloat y)
Copies the sign from one number to another.
|
static Apfloat |
ApfloatMath.copySign(Apfloat x,
Apfloat y)
Copy sign from one argument to another.
|
static Apint |
ApintMath.copySign(Apint x,
Apint y)
Copy sign from one argument to another.
|
static Aprational |
AprationalMath.copySign(Aprational x,
Aprational y)
Copy sign from one argument to another.
|
static Apcomplex |
ApcomplexMath.cos(Apcomplex z)
Cosine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.cos(Apcomplex z)
Cosine.
|
Apfloat |
FixedPrecisionApfloatHelper.cos(Apfloat x)
Cosine.
|
static Apfloat |
ApfloatMath.cos(Apfloat x)
Cosine.
|
static Apcomplex |
ApcomplexMath.cosh(Apcomplex z)
Hyperbolic cosine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.cosh(Apcomplex z)
Hyperbolic cosine.
|
Apfloat |
FixedPrecisionApfloatHelper.cosh(Apfloat x)
Hyperbolic cosine.
|
static Apfloat |
ApfloatMath.cosh(Apfloat x)
Hyperbolic cosine.
|
static Apint[] |
ApintMath.div(Apint x,
Apint y)
Quotient and remainder.
|
Apcomplex |
Apcomplex.divide(Apcomplex z)
Divides two apcomplex numbers.
|
Apcomplex |
FixedPrecisionApcomplexHelper.divide(Apcomplex z,
Apcomplex w)
Division.
|
Apfloat |
Apfloat.divide(Apfloat x)
Divides two apfloats.
|
Apfloat |
FixedPrecisionApfloatHelper.divide(Apfloat x,
Apfloat y)
Division.
|
Apint |
Apint.divide(Apint x)
Divides two apints.
|
Aprational |
Aprational.divide(Aprational x)
Divides two aprational numbers.
|
long |
Apcomplex.equalDigits(Apcomplex z)
Computes number of equal digits.
|
long |
Apfloat.equalDigits(Apfloat x)
Computes number of equal digits.
|
static Apcomplex |
ApcomplexMath.exp(Apcomplex z)
Exponent function.
|
Apcomplex |
FixedPrecisionApcomplexHelper.exp(Apcomplex z)
Exponential function.
|
Apfloat |
FixedPrecisionApfloatHelper.exp(Apfloat x)
Exponential function.
|
static Apfloat |
ApfloatMath.exp(Apfloat x)
Exponent function.
|
Apfloat |
FixedPrecisionApfloatHelper.factorial(long n)
Factorial.
|
static Apint |
ApintMath.factorial(long n)
Factorial function.
|
Apfloat |
FixedPrecisionApfloatHelper.factorial(long n,
int radix)
Factorial.
|
static Apint |
ApintMath.factorial(long n,
int radix)
Factorial function.
|
Apint |
Apfloat.floor()
Floor function.
|
Apint |
Aprational.floor()
Floor function.
|
Apfloat |
FixedPrecisionApfloatHelper.floor(Apfloat x)
Floor function.
|
static Apint |
ApfloatMath.floor(Apfloat x)
Floor function.
|
Apfloat |
FixedPrecisionApfloatHelper.fmod(Apfloat x,
Apfloat y)
Modulus.
|
static Apfloat |
ApfloatMath.fmod(Apfloat x,
Apfloat y)
Returns x modulo y.
|
Apfloat |
Apfloat.frac()
Returns the fractional part.
|
Aprational |
Aprational.frac()
Returns the fractional part.
|
Apint |
Apint.frac()
Returns the fractional part.
|
Apfloat |
FixedPrecisionApfloatHelper.frac(Apfloat x)
Extract fractional part.
|
static Apfloat |
ApfloatMath.frac(Apfloat x)
Extracts fractional part.
|
static Apint |
ApintMath.gcd(Apint a,
Apint b)
Greatest common divisor.
|
protected ApfloatImpl |
Apfloat.getImpl(long precision)
Returns an
ApfloatImpl representing the actual instance
of this apfloat up to the requested precision. |
protected ApfloatImpl |
Aprational.getImpl(long precision)
Returns an
ApfloatImpl representing the approximation of this
aprational up to the requested precision. |
protected ApfloatImpl |
Apint.getImpl(long precision)
Returns an
ApfloatImpl representing this apint up to the requested precision. |
static Apcomplex |
ApcomplexMath.inverseRoot(Apcomplex z,
long n)
Inverse positive integer root.
|
Apcomplex |
FixedPrecisionApcomplexHelper.inverseRoot(Apcomplex z,
long n)
Inverse root.
|
static Apcomplex |
ApcomplexMath.inverseRoot(Apcomplex z,
long n,
long k)
Inverse positive integer root.
|
Apcomplex |
FixedPrecisionApcomplexHelper.inverseRoot(Apcomplex z,
long n,
long k)
Inverse root with branch.
|
Apfloat |
FixedPrecisionApfloatHelper.inverseRoot(Apfloat x,
long n)
Inverse root.
|
static Apfloat |
ApfloatMath.inverseRoot(Apfloat x,
long n)
Inverse positive integer root.
|
static Apfloat |
ApfloatMath.inverseRoot(Apfloat x,
long n,
long targetPrecision)
Inverse positive integer root.
|
static Apfloat |
ApfloatMath.inverseRoot(Apfloat x,
long n,
long targetPrecision,
Apfloat initialGuess)
Inverse positive integer root.
|
static Apfloat |
ApfloatMath.inverseRoot(Apfloat x,
long n,
long targetPrecision,
Apfloat initialGuess,
long initialPrecision)
Inverse positive integer root.
|
boolean |
Apfloat.isShort()
Returns if this apfloat is "short".
|
boolean |
Aprational.isShort()
Returns if this aprational is "short".
|
boolean |
Apint.isShort()
Returns if this apint is "short".
|
static Apint |
ApintMath.lcm(Apint a,
Apint b)
Least common multiple.
|
static Properties |
ApfloatContext.loadProperties()
Loads properties from a properties file or resource bundle.
|
static Apcomplex |
ApcomplexMath.log(Apcomplex z)
Natural logarithm.
|
Apcomplex |
FixedPrecisionApcomplexHelper.log(Apcomplex z)
Natural logarithm.
|
static Apcomplex |
ApcomplexMath.log(Apcomplex z,
Apcomplex w)
Logarithm in arbitrary base.
|
Apcomplex |
FixedPrecisionApcomplexHelper.log(Apcomplex z,
Apcomplex w)
Logarithm in specified base.
|
Apfloat |
FixedPrecisionApfloatHelper.log(Apfloat x)
Natural logarithm.
|
static Apfloat |
ApfloatMath.log(Apfloat x)
Natural logarithm.
|
Apfloat |
FixedPrecisionApfloatHelper.log(Apfloat x,
Apfloat b)
Logarithm in specified base.
|
static Apfloat |
ApfloatMath.log(Apfloat x,
Apfloat b)
Logarithm in arbitrary base.
|
Apfloat |
FixedPrecisionApfloatHelper.logRadix(int radix)
Logarithm.
|
static Apfloat |
ApfloatMath.logRadix(long precision,
int radix)
Gets or calculates logarithm of a radix to required precision.
|
Apfloat |
Apfloat.mod(Apfloat x)
Calculates the remainder when divided by an apfloat.
|
Apfloat |
FixedPrecisionApfloatHelper.mod(Apfloat x,
Apfloat y)
Modulus.
|
Apint |
Apint.mod(Apint x)
Calculates the remainder when divided by an apint.
|
Aprational |
Aprational.mod(Aprational x)
Calculates the remainder when divided by an aprational.
|
Apfloat[] |
FixedPrecisionApfloatHelper.modf(Apfloat x)
Split to integer and fractional parts.
|
static Apfloat[] |
ApfloatMath.modf(Apfloat x)
Split to integer and fractional parts.
|
static Apint |
ApintMath.modMultiply(Apint a,
Apint b,
Apint m)
Modular multiplication.
|
static Apint |
ApintMath.modPow(Apint a,
Apint b,
Apint m)
Modular power.
|
Apcomplex |
Apcomplex.multiply(Apcomplex z)
Multiplies two apcomplex numbers.
|
Apcomplex |
FixedPrecisionApcomplexHelper.multiply(Apcomplex z,
Apcomplex w)
Multiplication.
|
Apfloat |
Apfloat.multiply(Apfloat x)
Multiplies two apfloats.
|
Apfloat |
FixedPrecisionApfloatHelper.multiply(Apfloat x,
Apfloat y)
Multiplication.
|
Apint |
Apint.multiply(Apint x)
Multiplies two apints.
|
Aprational |
Aprational.multiply(Aprational x)
Multiplies two aprational numbers.
|
Apfloat |
FixedPrecisionApfloatHelper.multiplyAdd(Apfloat a,
Apfloat b,
Apfloat c,
Apfloat d)
Fused multiply-add.
|
static Apfloat |
ApfloatMath.multiplyAdd(Apfloat a,
Apfloat b,
Apfloat c,
Apfloat d)
Fused multiply-add.
|
Apfloat |
FixedPrecisionApfloatHelper.multiplySubtract(Apfloat a,
Apfloat b,
Apfloat c,
Apfloat d)
Fused multiply-subtract.
|
static Apfloat |
ApfloatMath.multiplySubtract(Apfloat a,
Apfloat b,
Apfloat c,
Apfloat d)
Fused multiply-subtract.
|
Apcomplex |
Apcomplex.negate()
Negative value.
|
Apfloat |
Apfloat.negate()
Negative value.
|
Aprational |
Aprational.negate()
Negative value.
|
Apint |
Apint.negate()
Negative value.
|
static Apcomplex |
ApcomplexMath.negate(Apcomplex z)
Deprecated.
Use
Apcomplex.negate() . |
Apcomplex |
FixedPrecisionApcomplexHelper.negate(Apcomplex z)
Negation.
|
Apfloat |
FixedPrecisionApfloatHelper.negate(Apfloat x)
Negation.
|
static Apfloat |
ApfloatMath.negate(Apfloat x)
Deprecated.
Use
Apfloat.negate() . |
static Apint |
ApintMath.negate(Apint x)
Deprecated.
Use
Apint.negate() . |
static Aprational |
AprationalMath.negate(Aprational x)
Deprecated.
Use
Aprational.negate() . |
static Apfloat |
ApcomplexMath.norm(Apcomplex z)
Norm.
|
Apfloat |
FixedPrecisionApcomplexHelper.norm(Apcomplex z)
Norm.
|
Apfloat |
FixedPrecisionApfloatHelper.pi()
π.
|
Apfloat |
FixedPrecisionApfloatHelper.pi(int radix)
π.
|
static Apfloat |
ApfloatMath.pi(long precision)
Calculates π.
|
static Apfloat |
ApfloatMath.pi(long precision,
int radix)
Calculates π.
|
static Apcomplex |
ApcomplexMath.pow(Apcomplex z,
Apcomplex w)
Arbitrary power.
|
Apcomplex |
FixedPrecisionApcomplexHelper.pow(Apcomplex z,
Apcomplex w)
Power.
|
static Apcomplex |
ApcomplexMath.pow(Apcomplex z,
long n)
Integer power.
|
Apcomplex |
FixedPrecisionApcomplexHelper.pow(Apcomplex z,
long n)
Integer power.
|
Apfloat |
FixedPrecisionApfloatHelper.pow(Apfloat x,
Apfloat y)
Power.
|
static Apfloat |
ApfloatMath.pow(Apfloat x,
Apfloat y)
Arbitrary power.
|
Apfloat |
FixedPrecisionApfloatHelper.pow(Apfloat x,
long n)
Integer power.
|
static Apfloat |
ApfloatMath.pow(Apfloat x,
long n)
Integer power.
|
static Apint |
ApintMath.pow(Apint x,
long n)
Integer power.
|
static Aprational |
AprationalMath.pow(Aprational x,
long n)
Integer power.
|
long |
Apcomplex.precision()
Returns the precision of this apcomplex.
|
long |
Apfloat.precision()
Returns the precision of this apfloat.
|
long |
Aprational.precision()
Returns the precision of this aprational.
|
Apcomplex |
Apcomplex.precision(long precision)
Returns an apcomplex with the same value as this apcomplex accurate to the
specified precision.
|
Apfloat |
Apfloat.precision(long precision)
Returns an apfloat with the same value as this apfloat accurate to the
specified precision.
|
static Apcomplex |
ApcomplexMath.product(Apcomplex... z)
Product of numbers.
|
Apcomplex |
FixedPrecisionApcomplexHelper.product(Apcomplex... z)
Product.
|
Apfloat |
FixedPrecisionApfloatHelper.product(Apfloat... x)
Product.
|
static Apfloat |
ApfloatMath.product(Apfloat... x)
Product of numbers.
|
static Apint |
ApintMath.product(Apint... x)
Product of numbers.
|
static Aprational |
AprationalMath.product(Aprational... x)
Product of numbers.
|
static Apcomplex |
ApcomplexMath.root(Apcomplex z,
long n)
Positive integer root.
|
Apcomplex |
FixedPrecisionApcomplexHelper.root(Apcomplex z,
long n)
Root.
|
static Apcomplex |
ApcomplexMath.root(Apcomplex z,
long n,
long k)
Positive integer root.
|
Apcomplex |
FixedPrecisionApcomplexHelper.root(Apcomplex z,
long n,
long k)
Root with branch.
|
Apfloat |
FixedPrecisionApfloatHelper.root(Apfloat x,
long n)
Root.
|
static Apfloat |
ApfloatMath.root(Apfloat x,
long n)
Positive integer root.
|
static Apint[] |
ApintMath.root(Apint x,
long n)
Positive integer root and remainder.
|
static Apfloat |
ApfloatMath.round(Apfloat x,
long precision,
RoundingMode roundingMode)
Rounds the given number to the specified precision with the specified rounding mode.
|
Apfloat |
FixedPrecisionApfloatHelper.round(Apfloat x,
RoundingMode roundingMode)
Round with specified rounding mode.
|
static Apfloat |
AprationalMath.round(Aprational x,
long precision,
RoundingMode roundingMode)
Rounds the given number to the specified precision with the specified rounding mode.
|
long |
Apcomplex.scale()
Returns the scale of this apcomplex.
|
long |
Apfloat.scale()
Returns the scale of this apfloat.
|
long |
Aprational.scale()
Returns the scale of this aprational.
|
long |
Apint.scale()
Returns the scale of this apint.
|
static Apcomplex |
ApcomplexMath.scale(Apcomplex z,
long scale)
Multiply by a power of the radix.
|
Apcomplex |
FixedPrecisionApcomplexHelper.scale(Apcomplex z,
long scale)
Move the radix point.
|
Apfloat |
FixedPrecisionApfloatHelper.scale(Apfloat x,
long scale)
Move the radix point.
|
static Apfloat |
ApfloatMath.scale(Apfloat x,
long scale)
Multiply by a power of the radix.
|
static Apint |
ApintMath.scale(Apint x,
long scale)
Multiply by a power of the radix.
|
static Aprational |
AprationalMath.scale(Aprational x,
long scale)
Multiply by a power of the radix.
|
static Apcomplex |
ApcomplexMath.sin(Apcomplex z)
Sine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.sin(Apcomplex z)
Sine.
|
Apfloat |
FixedPrecisionApfloatHelper.sin(Apfloat x)
Sine.
|
static Apfloat |
ApfloatMath.sin(Apfloat x)
Sine.
|
static Apcomplex |
ApcomplexMath.sinh(Apcomplex z)
Hyperbolic sine.
|
Apcomplex |
FixedPrecisionApcomplexHelper.sinh(Apcomplex z)
Hyperbolic sine.
|
Apfloat |
FixedPrecisionApfloatHelper.sinh(Apfloat x)
Hyperbolic sine.
|
static Apfloat |
ApfloatMath.sinh(Apfloat x)
Hyperbolic sine.
|
long |
Apcomplex.size()
Returns the size of this apcomplex.
|
long |
Apfloat.size()
Returns the size of this apfloat.
|
long |
Aprational.size()
Returns the size of this aprational.
|
long |
Apint.size()
Returns the size of this apint.
|
static Apcomplex |
ApcomplexMath.sqrt(Apcomplex z)
Square root.
|
Apcomplex |
FixedPrecisionApcomplexHelper.sqrt(Apcomplex z)
Square root.
|
Apfloat |
FixedPrecisionApfloatHelper.sqrt(Apfloat x)
Square root.
|
static Apfloat |
ApfloatMath.sqrt(Apfloat x)
Square root.
|
static Apint[] |
ApintMath.sqrt(Apint x)
Square root and remainder.
|
Apcomplex |
Apcomplex.subtract(Apcomplex z)
Subtracts two apcomplex numbers.
|
Apcomplex |
FixedPrecisionApcomplexHelper.subtract(Apcomplex z,
Apcomplex w)
Subtraction.
|
Apfloat |
Apfloat.subtract(Apfloat x)
Subtracts two apfloats.
|
Apfloat |
FixedPrecisionApfloatHelper.subtract(Apfloat x,
Apfloat y)
Subtraction.
|
Apint |
Apint.subtract(Apint x)
Subtracts two apints.
|
Aprational |
Aprational.subtract(Aprational x)
Subtracts two aprational numbers.
|
static Apcomplex |
ApcomplexMath.sum(Apcomplex... z)
Sum of numbers.
|
Apcomplex |
FixedPrecisionApcomplexHelper.sum(Apcomplex... z)
Sum.
|
Apfloat |
FixedPrecisionApfloatHelper.sum(Apfloat... x)
Sum.
|
static Apfloat |
ApfloatMath.sum(Apfloat... x)
Sum of numbers.
|
static Apint |
ApintMath.sum(Apint... x)
Sum of numbers.
|
static Aprational |
AprationalMath.sum(Aprational... x)
Sum of numbers.
|
static Apcomplex |
ApcomplexMath.tan(Apcomplex z)
Tangent.
|
Apcomplex |
FixedPrecisionApcomplexHelper.tan(Apcomplex z)
Tangent.
|
Apfloat |
FixedPrecisionApfloatHelper.tan(Apfloat x)
Tangent.
|
static Apfloat |
ApfloatMath.tan(Apfloat x)
Tangent.
|
static Apcomplex |
ApcomplexMath.tanh(Apcomplex z)
Hyperbolic tangent.
|
Apcomplex |
FixedPrecisionApcomplexHelper.tanh(Apcomplex z)
Hyperbolic tangent.
|
Apfloat |
FixedPrecisionApfloatHelper.tanh(Apfloat x)
Hyperbolic tangent.
|
static Apfloat |
ApfloatMath.tanh(Apfloat x)
Hyperbolic tangent.
|
Apfloat |
FixedPrecisionApfloatHelper.toDegrees(Apfloat x)
Convert radians to degrees.
|
static Apfloat |
ApfloatMath.toDegrees(Apfloat x)
Converts an angle measured in radians to degrees.
|
Apfloat |
FixedPrecisionApfloatHelper.toRadians(Apfloat x)
Convert degrees to radians.
|
static Apfloat |
ApfloatMath.toRadians(Apfloat x)
Converts an angle measured in degrees to radians.
|
Apcomplex |
Apcomplex.toRadix(int radix)
Convert this apcomplex to the specified radix.
|
Apfloat |
Apfloat.toRadix(int radix)
Convert this apfloat to the specified radix.
|
Aprational |
Aprational.toRadix(int radix)
Convert this aprational to the specified radix.
|
Apint |
Apint.toRadix(int radix)
Convert this apint to the specified radix.
|
String |
Apcomplex.toString(boolean pretty)
Returns a string representation of this apcomplex.
|
String |
Apfloat.toString(boolean pretty)
Returns a string representation of this apfloat.
|
String |
Aprational.toString(boolean pretty)
Returns a string representation of this aprational.
|
String |
Apint.toString(boolean pretty)
Returns a string representation of this aprational.
|
Apint |
Apfloat.truncate()
Truncates fractional part.
|
Apint |
Aprational.truncate()
Truncates fractional part.
|
Apfloat |
FixedPrecisionApfloatHelper.truncate(Apfloat x)
Truncate fractional part.
|
static Apint |
ApfloatMath.truncate(Apfloat x)
Truncates fractional part.
|
Apcomplex |
FixedPrecisionApcomplexHelper.valueOf(Apcomplex z)
Returns the value with the specified precision.
|
static Apcomplex |
ApcomplexMath.w(Apcomplex z)
Lambert W function.
|
Apcomplex |
FixedPrecisionApcomplexHelper.w(Apcomplex z)
Lambert W function.
|
static Apcomplex |
ApcomplexMath.w(Apcomplex z,
long k)
Lambert W function for the specified branch.
|
Apcomplex |
FixedPrecisionApcomplexHelper.w(Apcomplex z,
long k)
Lambert W function for the specified branch.
|
Apfloat |
FixedPrecisionApfloatHelper.w(Apfloat x)
Lambert W function.
|
static Apfloat |
ApfloatMath.w(Apfloat x)
Lambert W function.
|
void |
Apcomplex.writeTo(Writer out)
Write a string representation of this apcomplex to a
Writer . |
void |
Aprational.writeTo(Writer out)
Write a string representation of this aprational to a
Writer . |
void |
Apcomplex.writeTo(Writer out,
boolean pretty)
Write a string representation of this apcomplex to a
Writer . |
void |
Apfloat.writeTo(Writer out,
boolean pretty)
Write a string representation of this apfloat to a
Writer . |
void |
Aprational.writeTo(Writer out,
boolean pretty)
Write a string representation of this aprational to a
Writer . |
void |
Apint.writeTo(Writer out,
boolean pretty)
Write a string representation of this aprational to a
Writer . |
Constructor and Description |
---|
Apcomplex(PushbackReader in)
Reads an apcomplex from a reader.
|
Apcomplex(String value)
Constructs an apcomplex from a string.
|
Apfloat(BigDecimal value)
Creates an apfloat from a
BigDecimal . |
Apfloat(BigDecimal value,
long precision)
Creates an apfloat from a
BigDecimal . |
Apfloat(BigInteger value)
Constructs an apfloat from a
BigInteger . |
Apfloat(BigInteger value,
long precision)
Constructs an apfloat from a
BigInteger with
the specified precision. |
Apfloat(BigInteger value,
long precision,
int radix)
Constructs an apfloat from a
BigInteger with
the specified precision and radix. |
Apfloat(double value)
Constructs an apfloat from the specified
double . |
Apfloat(double value,
long precision)
Constructs an apfloat from the specified
double
and precision. |
Apfloat(double value,
long precision,
int radix)
Constructs an apfloat from the specified
double ,
precision and radix. |
Apfloat(float value)
Constructs an apfloat from the specified
float . |
Apfloat(float value,
long precision)
Constructs an apfloat from the specified
float
and precision. |
Apfloat(float value,
long precision,
int radix)
Constructs an apfloat from the specified
float ,
precision and radix. |
Apfloat(long value)
Constructs an apfloat from the specified
long . |
Apfloat(long value,
long precision)
Constructs an apfloat from the specified
long
and precision. |
Apfloat(long value,
long precision,
int radix)
Constructs an apfloat from the specified
long ,
precision and radix. |
Apfloat(PushbackReader in)
Reads an apfloat from a stream using default precision and radix.
|
Apfloat(PushbackReader in,
long precision)
Reads an apfloat from a stream using the specified precision.
|
Apfloat(PushbackReader in,
long precision,
int radix)
Reads an apfloat from a stream using the specified precision
and radix.
|
Apfloat(String value)
Constructs an apfloat from the specified string.
|
Apfloat(String value,
long precision)
Constructs an apfloat from the specified string and precision.
|
Apfloat(String value,
long precision,
int radix)
Constructs an apfloat from the specified string, precision and radix.
|
Apint(BigInteger value)
Constructs an apint from a
BigInteger . |
Apint(BigInteger value,
int radix)
Constructs an apint from a
BigInteger using the specified radix. |
Apint(long value)
Constructs an apfloat from the specified
long . |
Apint(long value,
int radix)
Constructs an apfloat from the specified
long
and radix. |
Apint(PushbackReader in)
Reads an apint from a stream using the default radix.
|
Apint(PushbackReader in,
int radix)
Reads an apint from a stream using the specified radix.
|
Apint(String value)
Constructs an apfloat from the specified string.
|
Apint(String value,
int radix)
Constructs an apfloat from the specified string and radix.
|
Aprational(Apint value)
Construct an integer aprational whose denominator is one.
|
Aprational(Apint numerator,
Apint denominator)
Construct an aprational with the specified numerator and denominator.
|
Aprational(BigInteger value)
Constructs an aprational from a
BigInteger . |
Aprational(BigInteger value,
int radix)
Constructs an aprational from a
BigInteger using the specified radix. |
Aprational(PushbackReader in)
Reads an aprational from a reader.
|
Aprational(PushbackReader in,
int radix)
Reads an aprational from a reader.
|
Aprational(String value)
Constructs an aprational from a string.
|
Aprational(String value,
int radix)
Constructs an aprational from a string with the specified radix.
|
Modifier and Type | Class and Description |
---|---|
class |
ApfloatInternalException
Exception indicating some unexpected apfloat
implementation specific error situation.
|
class |
BackingStorageException
Exception indicating a backing storage failure.
|
class |
ImplementationMismatchException
Exception indicating a different implementation of the apfloat SPI
being used in two operands of a calculation.
|
class |
RadixMismatchException
Exception indicating a different radix being used in two operands
of a calculation.
|
class |
TransformLengthExceededException
Exception indicating that the "size" of the numbers used in a
multiplication is too large.
|
Modifier and Type | Method and Description |
---|---|
ApfloatImpl |
DoubleApfloatImpl.absCeil() |
ApfloatImpl |
IntApfloatImpl.absCeil() |
ApfloatImpl |
FloatApfloatImpl.absCeil() |
ApfloatImpl |
LongApfloatImpl.absCeil() |
ApfloatImpl |
DoubleApfloatImpl.absFloor() |
ApfloatImpl |
IntApfloatImpl.absFloor() |
ApfloatImpl |
FloatApfloatImpl.absFloor() |
ApfloatImpl |
LongApfloatImpl.absFloor() |
Double |
DoubleAdditionStrategy.add(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Double carry,
DataStorage.Iterator dst,
long size) |
Float |
FloatAdditionStrategy.add(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Float carry,
DataStorage.Iterator dst,
long size) |
Integer |
IntAdditionStrategy.add(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Integer carry,
DataStorage.Iterator dst,
long size) |
Long |
LongAdditionStrategy.add(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Long carry,
DataStorage.Iterator dst,
long size) |
ApfloatImpl |
DoubleApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
IntApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
FloatApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
ApfloatImpl |
LongApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract) |
protected DataStorage |
ThreeNTTConvolutionStrategy.autoConvolute(DataStorage x,
long resultSize)
Convolutes a data set with itself.
|
protected DataStorage |
ThreeNTTConvolutionStrategy.autoConvoluteOne(DataStorage x,
long length,
int modulus,
boolean cached)
Performs an autoconvolution modulo one modulus, of the specified transform length.
|
double |
DoubleBaseMath.baseAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
double carry,
DataStorage.Iterator dst,
long size)
Addition in some base.
|
float |
FloatBaseMath.baseAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
float carry,
DataStorage.Iterator dst,
long size)
Addition in some base.
|
int |
IntBaseMath.baseAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
int carry,
DataStorage.Iterator dst,
long size)
Addition in some base.
|
long |
LongBaseMath.baseAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
long carry,
DataStorage.Iterator dst,
long size)
Addition in some base.
|
double |
DoubleBaseMath.baseDivide(DataStorage.Iterator src1,
double src2,
double carry,
DataStorage.Iterator dst,
long size)
Division in some base.
|
float |
FloatBaseMath.baseDivide(DataStorage.Iterator src1,
float src2,
float carry,
DataStorage.Iterator dst,
long size)
Division in some base.
|
int |
IntBaseMath.baseDivide(DataStorage.Iterator src1,
int src2,
int carry,
DataStorage.Iterator dst,
long size)
Division in some base.
|
long |
LongBaseMath.baseDivide(DataStorage.Iterator src1,
long src2,
long carry,
DataStorage.Iterator dst,
long size)
Division in some base.
|
double |
DoubleBaseMath.baseMultiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
double src3,
double carry,
DataStorage.Iterator dst,
long size)
Multiplication and addition in some base.
|
float |
FloatBaseMath.baseMultiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
float src3,
float carry,
DataStorage.Iterator dst,
long size)
Multiplication and addition in some base.
|
int |
IntBaseMath.baseMultiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
int src3,
int carry,
DataStorage.Iterator dst,
long size)
Multiplication and addition in some base.
|
long |
LongBaseMath.baseMultiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
long src3,
long carry,
DataStorage.Iterator dst,
long size)
Multiplication and addition in some base.
|
double |
DoubleBaseMath.baseSubtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
double carry,
DataStorage.Iterator dst,
long size)
Subtraction in some base.
|
float |
FloatBaseMath.baseSubtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
float carry,
DataStorage.Iterator dst,
long size)
Subtraction in some base.
|
int |
IntBaseMath.baseSubtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
int carry,
DataStorage.Iterator dst,
long size)
Subtraction in some base.
|
long |
LongBaseMath.baseSubtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
long carry,
DataStorage.Iterator dst,
long size)
Subtraction in some base.
|
double[] |
DoubleCarryCRTStepStrategy.carry(DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length,
double[] results,
double[] previousResults) |
float[] |
FloatCarryCRTStepStrategy.carry(DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length,
float[] results,
float[] previousResults) |
int[] |
IntCarryCRTStepStrategy.carry(DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length,
int[] results,
int[] previousResults) |
long[] |
LongCarryCRTStepStrategy.carry(DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length,
long[] results,
long[] previousResults) |
DataStorage |
StepCarryCRTStrategy.carryCRT(DataStorage resultMod0,
DataStorage resultMod1,
DataStorage resultMod2,
long resultSize)
Calculate the final result of a three-NTT convolution.
|
void |
FloatMemoryArrayAccess.close() |
void |
LongMemoryArrayAccess.close() |
void |
DoubleMemoryArrayAccess.close() |
void |
IntMemoryArrayAccess.close() |
int |
DoubleApfloatImpl.compareTo(ApfloatImpl x) |
int |
IntApfloatImpl.compareTo(ApfloatImpl x) |
int |
FloatApfloatImpl.compareTo(ApfloatImpl x) |
int |
LongApfloatImpl.compareTo(ApfloatImpl x) |
DataStorage |
FloatKaratsubaConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
DoubleShortConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
LongMediumConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
IntMediumConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
LongKaratsubaConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
DoubleMediumConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
ThreeNTTConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
LongShortConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
IntShortConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
FloatMediumConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
FloatShortConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
DoubleKaratsubaConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
DataStorage |
IntKaratsubaConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize) |
protected DataStorage |
ThreeNTTConvolutionStrategy.convoluteOne(DataStorage x,
DataStorage y,
long length,
int modulus,
boolean cached)
Performs a convolution modulo one modulus, of the specified transform length.
|
ApfloatImpl |
IntApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(double value,
long precision,
int radix) |
ApfloatImpl |
IntApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(long value,
long precision,
int radix) |
ApfloatImpl |
IntApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
IntApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
LongApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
FloatApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
ApfloatImpl |
DoubleApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger) |
protected DataStorage |
DoubleDataStorageBuilder.createCachedDataStorage() |
protected abstract DataStorage |
AbstractDataStorageBuilder.createCachedDataStorage()
Create a cached data storage.
|
protected DataStorage |
LongDataStorageBuilder.createCachedDataStorage() |
protected DataStorage |
FloatDataStorageBuilder.createCachedDataStorage() |
protected DataStorage |
IntDataStorageBuilder.createCachedDataStorage() |
DataStorage |
AbstractDataStorageBuilder.createCachedDataStorage(long size) |
protected DataStorage |
ThreeNTTConvolutionStrategy.createCachedDataStorage(long size)
Create a cached (if possible) data storage for the specified number of elements.
|
DataStorage |
AbstractDataStorageBuilder.createDataStorage(DataStorage dataStorage) |
protected DataStorage |
ThreeNTTConvolutionStrategy.createDataStorage(DataStorage dataStorage)
Create a cached data storage from the (possibly) cached data storage.
|
DataStorage |
AbstractDataStorageBuilder.createDataStorage(long size) |
protected ParallelRunnable |
IntNTTStepStrategy.createMultiplyElementsParallelRunnable(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus)
Create a ParallelRunnable object for multiplying the elements of the matrix.
|
protected ParallelRunnable |
FloatNTTStepStrategy.createMultiplyElementsParallelRunnable(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus)
Create a ParallelRunnable object for multiplying the elements of the matrix.
|
protected ParallelRunnable |
DoubleNTTStepStrategy.createMultiplyElementsParallelRunnable(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus)
Create a ParallelRunnable object for multiplying the elements of the matrix.
|
protected ParallelRunnable |
LongNTTStepStrategy.createMultiplyElementsParallelRunnable(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus)
Create a ParallelRunnable object for multiplying the elements of the matrix.
|
protected DataStorage |
DoubleDataStorageBuilder.createNonCachedDataStorage() |
protected abstract DataStorage |
AbstractDataStorageBuilder.createNonCachedDataStorage()
Create a non-cached data storage.
|
protected DataStorage |
LongDataStorageBuilder.createNonCachedDataStorage() |
protected DataStorage |
FloatDataStorageBuilder.createNonCachedDataStorage() |
protected DataStorage |
IntDataStorageBuilder.createNonCachedDataStorage() |
protected ParallelRunnable |
IntNTTStepStrategy.createTransformRowsParallelRunnable(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus)
Create a ParallelRunnable object for transforming the rows of the matrix.
|
protected ParallelRunnable |
FloatNTTStepStrategy.createTransformRowsParallelRunnable(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus)
Create a ParallelRunnable object for transforming the rows of the matrix.
|
protected ParallelRunnable |
DoubleNTTStepStrategy.createTransformRowsParallelRunnable(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus)
Create a ParallelRunnable object for transforming the rows of the matrix.
|
protected ParallelRunnable |
LongNTTStepStrategy.createTransformRowsParallelRunnable(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus)
Create a ParallelRunnable object for transforming the rows of the matrix.
|
long[] |
LongCarryCRTStepStrategy.crt(DataStorage resultMod0,
DataStorage resultMod1,
DataStorage resultMod2,
DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length) |
float[] |
FloatCarryCRTStepStrategy.crt(DataStorage resultMod0,
DataStorage resultMod1,
DataStorage resultMod2,
DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length) |
double[] |
DoubleCarryCRTStepStrategy.crt(DataStorage resultMod0,
DataStorage resultMod1,
DataStorage resultMod2,
DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length) |
int[] |
IntCarryCRTStepStrategy.crt(DataStorage resultMod0,
DataStorage resultMod1,
DataStorage resultMod2,
DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length) |
Double |
DoubleAdditionStrategy.divide(DataStorage.Iterator src1,
Double src2,
Double carry,
DataStorage.Iterator dst,
long size) |
Float |
FloatAdditionStrategy.divide(DataStorage.Iterator src1,
Float src2,
Float carry,
DataStorage.Iterator dst,
long size) |
Integer |
IntAdditionStrategy.divide(DataStorage.Iterator src1,
Integer src2,
Integer carry,
DataStorage.Iterator dst,
long size) |
Long |
LongAdditionStrategy.divide(DataStorage.Iterator src1,
Long src2,
Long carry,
DataStorage.Iterator dst,
long size) |
ApfloatImpl |
DoubleApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
IntApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
FloatApfloatImpl.divideShort(ApfloatImpl x) |
ApfloatImpl |
LongApfloatImpl.divideShort(ApfloatImpl x) |
long |
DoubleApfloatImpl.equalDigits(ApfloatImpl x) |
long |
IntApfloatImpl.equalDigits(ApfloatImpl x) |
long |
FloatApfloatImpl.equalDigits(ApfloatImpl x) |
long |
LongApfloatImpl.equalDigits(ApfloatImpl x) |
ApfloatImpl |
DoubleApfloatImpl.frac() |
ApfloatImpl |
IntApfloatImpl.frac() |
ApfloatImpl |
FloatApfloatImpl.frac() |
ApfloatImpl |
LongApfloatImpl.frac() |
void |
DoubleBuilderFactory.gc() |
void |
IntBuilderFactory.gc() |
void |
LongBuilderFactory.gc() |
void |
FloatBuilderFactory.gc() |
protected void |
DiskDataStorage.implCopyFrom(DataStorage dataStorage,
long size) |
protected void |
IntMemoryDataStorage.implCopyFrom(DataStorage dataStorage,
long size) |
protected void |
DoubleMemoryDataStorage.implCopyFrom(DataStorage dataStorage,
long size) |
protected void |
FloatMemoryDataStorage.implCopyFrom(DataStorage dataStorage,
long size) |
protected void |
LongMemoryDataStorage.implCopyFrom(DataStorage dataStorage,
long size) |
protected ArrayAccess |
DiskDataStorage.implGetArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
IntMemoryDataStorage.implGetArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
DoubleMemoryDataStorage.implGetArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
FloatMemoryDataStorage.implGetArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
LongMemoryDataStorage.implGetArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
LongDiskDataStorage.implGetArray(int mode,
long offset,
int length) |
protected ArrayAccess |
IntDiskDataStorage.implGetArray(int mode,
long offset,
int length) |
protected ArrayAccess |
IntMemoryDataStorage.implGetArray(int mode,
long offset,
int length) |
protected ArrayAccess |
DoubleMemoryDataStorage.implGetArray(int mode,
long offset,
int length) |
protected ArrayAccess |
FloatMemoryDataStorage.implGetArray(int mode,
long offset,
int length) |
protected ArrayAccess |
DoubleDiskDataStorage.implGetArray(int mode,
long offset,
int length) |
protected ArrayAccess |
FloatDiskDataStorage.implGetArray(int mode,
long offset,
int length) |
protected ArrayAccess |
LongMemoryDataStorage.implGetArray(int mode,
long offset,
int length) |
protected long |
DiskDataStorage.implGetSize() |
protected ArrayAccess |
DiskDataStorage.implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
IntMemoryDataStorage.implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
DoubleMemoryDataStorage.implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
FloatMemoryDataStorage.implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows) |
protected ArrayAccess |
LongMemoryDataStorage.implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows) |
protected void |
DiskDataStorage.implSetSize(long size) |
protected void |
IntMemoryDataStorage.implSetSize(long size) |
protected void |
DoubleMemoryDataStorage.implSetSize(long size) |
protected void |
FloatMemoryDataStorage.implSetSize(long size) |
protected void |
LongMemoryDataStorage.implSetSize(long size) |
protected DataStorage |
LongDiskDataStorage.implSubsequence(long offset,
long length) |
protected DataStorage |
IntDiskDataStorage.implSubsequence(long offset,
long length) |
protected DataStorage |
IntMemoryDataStorage.implSubsequence(long offset,
long length) |
protected DataStorage |
DoubleMemoryDataStorage.implSubsequence(long offset,
long length) |
protected DataStorage |
FloatMemoryDataStorage.implSubsequence(long offset,
long length) |
protected DataStorage |
DoubleDiskDataStorage.implSubsequence(long offset,
long length) |
protected DataStorage |
FloatDiskDataStorage.implSubsequence(long offset,
long length) |
protected DataStorage |
LongMemoryDataStorage.implSubsequence(long offset,
long length) |
void |
DoubleTableFNT.inverseTableFNT(ArrayAccess arrayAccess,
double[] wTable,
int[] permutationTable)
Inverse (Cooley-Tukey) fast Number Theoretic Transform.
|
void |
FloatTableFNT.inverseTableFNT(ArrayAccess arrayAccess,
float[] wTable,
int[] permutationTable)
Inverse (Cooley-Tukey) fast Number Theoretic Transform.
|
void |
IntTableFNT.inverseTableFNT(ArrayAccess arrayAccess,
int[] wTable,
int[] permutationTable)
Inverse (Cooley-Tukey) fast Number Theoretic Transform.
|
void |
LongTableFNT.inverseTableFNT(ArrayAccess arrayAccess,
long[] wTable,
int[] permutationTable)
Inverse (Cooley-Tukey) fast Number Theoretic Transform.
|
protected void |
SixStepFNTStrategy.inverseTransform(DataStorage dataStorage,
int n1,
int n2,
long length,
long totalTransformLength,
int modulus) |
protected abstract void |
AbstractStepFNTStrategy.inverseTransform(DataStorage dataStorage,
int n1,
int n2,
long length,
long totalTransformLength,
int modulus)
Inverse transform the data in steps.
|
protected void |
TwoPassFNTStrategy.inverseTransform(DataStorage dataStorage,
int n1,
int n2,
long length,
long totalTransformLength,
int modulus) |
void |
DoubleTableFNTStrategy.inverseTransform(DataStorage dataStorage,
int modulus,
long totalTransformLength) |
void |
Factor3NTTStrategy.inverseTransform(DataStorage dataStorage,
int modulus,
long totalTransformLength) |
void |
FloatTableFNTStrategy.inverseTransform(DataStorage dataStorage,
int modulus,
long totalTransformLength) |
void |
IntTableFNTStrategy.inverseTransform(DataStorage dataStorage,
int modulus,
long totalTransformLength) |
void |
LongTableFNTStrategy.inverseTransform(DataStorage dataStorage,
int modulus,
long totalTransformLength) |
void |
AbstractStepFNTStrategy.inverseTransform(DataStorage dataStorage,
int modulus,
long totalTransformLength) |
protected boolean |
DoubleDataStorageBuilder.isCached(DataStorage dataStorage) |
protected abstract boolean |
AbstractDataStorageBuilder.isCached(DataStorage dataStorage)
Test if the data storage is of cached type.
|
protected boolean |
LongDataStorageBuilder.isCached(DataStorage dataStorage) |
protected boolean |
FloatDataStorageBuilder.isCached(DataStorage dataStorage) |
protected boolean |
IntDataStorageBuilder.isCached(DataStorage dataStorage) |
boolean |
DoubleApfloatImpl.isOne() |
boolean |
IntApfloatImpl.isOne() |
boolean |
FloatApfloatImpl.isOne() |
boolean |
LongApfloatImpl.isOne() |
boolean |
DoubleApfloatImpl.isShort() |
boolean |
IntApfloatImpl.isShort() |
boolean |
FloatApfloatImpl.isShort() |
boolean |
LongApfloatImpl.isShort() |
DataStorage.Iterator |
LongDiskDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
DataStorage.Iterator |
IntDiskDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
DataStorage.Iterator |
IntMemoryDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
DataStorage.Iterator |
DoubleMemoryDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
DataStorage.Iterator |
FloatMemoryDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
DataStorage.Iterator |
DoubleDiskDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
DataStorage.Iterator |
FloatDiskDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
DataStorage.Iterator |
LongMemoryDataStorage.iterator(int mode,
long startPosition,
long endPosition) |
ApfloatImpl |
DoubleApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
IntApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
FloatApfloatImpl.multiply(ApfloatImpl x) |
ApfloatImpl |
LongApfloatImpl.multiply(ApfloatImpl x) |
Double |
DoubleAdditionStrategy.multiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Double src3,
Double carry,
DataStorage.Iterator dst,
long size) |
Float |
FloatAdditionStrategy.multiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Float src3,
Float carry,
DataStorage.Iterator dst,
long size) |
Integer |
IntAdditionStrategy.multiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Integer src3,
Integer carry,
DataStorage.Iterator dst,
long size) |
Long |
LongAdditionStrategy.multiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Long src3,
Long carry,
DataStorage.Iterator dst,
long size) |
void |
IntNTTStepStrategy.multiplyElements(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus) |
void |
FloatNTTStepStrategy.multiplyElements(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus) |
void |
DoubleNTTStepStrategy.multiplyElements(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus) |
void |
LongNTTStepStrategy.multiplyElements(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus) |
void |
FloatNTTConvolutionStepStrategy.multiplyInPlace(DataStorage sourceAndDestination,
DataStorage source,
int modulus) |
void |
IntNTTConvolutionStepStrategy.multiplyInPlace(DataStorage sourceAndDestination,
DataStorage source,
int modulus) |
void |
DoubleNTTConvolutionStepStrategy.multiplyInPlace(DataStorage sourceAndDestination,
DataStorage source,
int modulus) |
void |
LongNTTConvolutionStepStrategy.multiplyInPlace(DataStorage sourceAndDestination,
DataStorage source,
int modulus) |
ApfloatImpl |
DoubleApfloatImpl.negate() |
ApfloatImpl |
IntApfloatImpl.negate() |
ApfloatImpl |
FloatApfloatImpl.negate() |
ApfloatImpl |
LongApfloatImpl.negate() |
void |
LongMatrixStrategy.permuteToDoubleWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
n1/2 x 2*n2 matrix.
|
void |
FloatMatrixStrategy.permuteToDoubleWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
n1/2 x 2*n2 matrix.
|
void |
IntMatrixStrategy.permuteToDoubleWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
n1/2 x 2*n2 matrix.
|
void |
DoubleMatrixStrategy.permuteToDoubleWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
n1/2 x 2*n2 matrix.
|
void |
LongMatrixStrategy.permuteToHalfWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
2*n1 x n2/2 matrix.
|
void |
FloatMatrixStrategy.permuteToHalfWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
2*n1 x n2/2 matrix.
|
void |
IntMatrixStrategy.permuteToHalfWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
2*n1 x n2/2 matrix.
|
void |
DoubleMatrixStrategy.permuteToHalfWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
2*n1 x n2/2 matrix.
|
V |
MessagePasser.receiveMessage(K receiver)
Receive a message.
|
static void |
ParallelRunner.runParallel(ParallelRunnable parallelRunnable)
Run a ParallelRunnable object in parallel using multiple threads.
|
long |
DoubleApfloatImpl.scale() |
long |
IntApfloatImpl.scale() |
long |
FloatApfloatImpl.scale() |
long |
LongApfloatImpl.scale() |
protected void |
DiskDataStorage.setArray(ArrayAccess arrayAccess,
int startColumn,
int columns,
int rows)
Write the data back to the same location in the file that was retrieved with
DiskDataStorage.implGetArray(int,int,int,int) . |
protected void |
DiskDataStorage.setTransposedArray(ArrayAccess arrayAccess,
int startColumn,
int columns,
int rows)
Write the data back to the same location in the file that was retrieved with
DiskDataStorage.implGetTransposedArray(int,int,int,int) . |
void |
DoubleBuilderFactory.shutdown() |
void |
IntBuilderFactory.shutdown() |
void |
LongBuilderFactory.shutdown() |
void |
FloatBuilderFactory.shutdown() |
long |
DoubleApfloatImpl.size() |
long |
IntApfloatImpl.size() |
long |
FloatApfloatImpl.size() |
long |
LongApfloatImpl.size() |
void |
FloatNTTConvolutionStepStrategy.squareInPlace(DataStorage sourceAndDestination,
int modulus) |
void |
IntNTTConvolutionStepStrategy.squareInPlace(DataStorage sourceAndDestination,
int modulus) |
void |
DoubleNTTConvolutionStepStrategy.squareInPlace(DataStorage sourceAndDestination,
int modulus) |
void |
LongNTTConvolutionStepStrategy.squareInPlace(DataStorage sourceAndDestination,
int modulus) |
Double |
DoubleAdditionStrategy.subtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Double carry,
DataStorage.Iterator dst,
long size) |
Float |
FloatAdditionStrategy.subtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Float carry,
DataStorage.Iterator dst,
long size) |
Integer |
IntAdditionStrategy.subtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Integer carry,
DataStorage.Iterator dst,
long size) |
Long |
LongAdditionStrategy.subtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
Long carry,
DataStorage.Iterator dst,
long size) |
void |
DoubleTableFNT.tableFNT(ArrayAccess arrayAccess,
double[] wTable,
int[] permutationTable)
Forward (Sande-Tukey) fast Number Theoretic Transform.
|
void |
FloatTableFNT.tableFNT(ArrayAccess arrayAccess,
float[] wTable,
int[] permutationTable)
Forward (Sande-Tukey) fast Number Theoretic Transform.
|
void |
IntTableFNT.tableFNT(ArrayAccess arrayAccess,
int[] wTable,
int[] permutationTable)
Forward (Sande-Tukey) fast Number Theoretic Transform.
|
void |
LongTableFNT.tableFNT(ArrayAccess arrayAccess,
long[] wTable,
int[] permutationTable)
Forward (Sande-Tukey) fast Number Theoretic Transform.
|
String |
DoubleApfloatImpl.toString(boolean pretty) |
String |
IntApfloatImpl.toString(boolean pretty) |
String |
FloatApfloatImpl.toString(boolean pretty) |
String |
LongApfloatImpl.toString(boolean pretty) |
protected void |
DiskDataStorage.transferFrom(ReadableByteChannel in,
long position,
long size)
Transfer from a readable channel, possibly in multiple chunks.
|
protected void |
DiskDataStorage.transferTo(WritableByteChannel out,
long position,
long size)
Transfer to a writable channel, possibly in multiple chunks.
|
void |
DoubleTableFNTStrategy.transform(DataStorage dataStorage,
int modulus) |
void |
Factor3NTTStrategy.transform(DataStorage dataStorage,
int modulus) |
void |
FloatTableFNTStrategy.transform(DataStorage dataStorage,
int modulus) |
void |
IntTableFNTStrategy.transform(DataStorage dataStorage,
int modulus) |
void |
LongTableFNTStrategy.transform(DataStorage dataStorage,
int modulus) |
void |
AbstractStepFNTStrategy.transform(DataStorage dataStorage,
int modulus) |
protected void |
SixStepFNTStrategy.transform(DataStorage dataStorage,
int n1,
int n2,
long length,
int modulus) |
protected abstract void |
AbstractStepFNTStrategy.transform(DataStorage dataStorage,
int n1,
int n2,
long length,
int modulus)
Transform the data in steps.
|
protected void |
TwoPassFNTStrategy.transform(DataStorage dataStorage,
int n1,
int n2,
long length,
int modulus) |
void |
IntFactor3NTTStepStrategy.transformColumns(DataStorage dataStorage0,
DataStorage dataStorage1,
DataStorage dataStorage2,
long startColumn,
long columns,
long power2length,
long length,
boolean isInverse,
int modulus) |
void |
DoubleFactor3NTTStepStrategy.transformColumns(DataStorage dataStorage0,
DataStorage dataStorage1,
DataStorage dataStorage2,
long startColumn,
long columns,
long power2length,
long length,
boolean isInverse,
int modulus) |
void |
FloatFactor3NTTStepStrategy.transformColumns(DataStorage dataStorage0,
DataStorage dataStorage1,
DataStorage dataStorage2,
long startColumn,
long columns,
long power2length,
long length,
boolean isInverse,
int modulus) |
void |
LongFactor3NTTStepStrategy.transformColumns(DataStorage dataStorage0,
DataStorage dataStorage1,
DataStorage dataStorage2,
long startColumn,
long columns,
long power2length,
long length,
boolean isInverse,
int modulus) |
void |
IntNTTStepStrategy.transformRows(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus) |
void |
FloatNTTStepStrategy.transformRows(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus) |
void |
DoubleNTTStepStrategy.transformRows(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus) |
void |
LongNTTStepStrategy.transformRows(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus) |
void |
LongMatrixStrategy.transpose(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a n1 x n2 matrix.
|
void |
FloatMatrixStrategy.transpose(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a n1 x n2 matrix.
|
void |
IntMatrixStrategy.transpose(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a n1 x n2 matrix.
|
void |
DoubleMatrixStrategy.transpose(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a n1 x n2 matrix.
|
void |
LongMatrixStrategy.transposeSquare(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a square n1 x n1 block of n1 x n2 matrix.
|
void |
FloatMatrixStrategy.transposeSquare(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a square n1 x n1 block of n1 x n2 matrix.
|
void |
IntMatrixStrategy.transposeSquare(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a square n1 x n1 block of n1 x n2 matrix.
|
void |
DoubleMatrixStrategy.transposeSquare(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a square n1 x n1 block of n1 x n2 matrix.
|
void |
DoubleApfloatImpl.writeTo(Writer out,
boolean pretty) |
void |
IntApfloatImpl.writeTo(Writer out,
boolean pretty) |
void |
FloatApfloatImpl.writeTo(Writer out,
boolean pretty) |
void |
LongApfloatImpl.writeTo(Writer out,
boolean pretty) |
Constructor and Description |
---|
DiskDataStorage()
Default constructor.
|
DoubleApfloatImpl(double value,
long precision,
int radix)
Create a new
DoubleApfloatImpl instance from a double . |
DoubleApfloatImpl(long value,
long precision,
int radix)
Create a new
DoubleApfloatImpl instance from a long . |
DoubleApfloatImpl(PushbackReader in,
long precision,
int radix,
boolean isInteger)
Create a new
DoubleApfloatImpl instance reading from a stream. |
DoubleApfloatImpl(String value,
long precision,
int radix,
boolean isInteger)
Create a new
DoubleApfloatImpl instance from a String. |
DoubleDiskDataStorage()
Default constructor.
|
FloatApfloatImpl(double value,
long precision,
int radix)
Create a new
FloatApfloatImpl instance from a double . |
FloatApfloatImpl(long value,
long precision,
int radix)
Create a new
FloatApfloatImpl instance from a long . |
FloatApfloatImpl(PushbackReader in,
long precision,
int radix,
boolean isInteger)
Create a new
FloatApfloatImpl instance reading from a stream. |
FloatApfloatImpl(String value,
long precision,
int radix,
boolean isInteger)
Create a new
FloatApfloatImpl instance from a String. |
FloatDiskDataStorage()
Default constructor.
|
IntApfloatImpl(double value,
long precision,
int radix)
Create a new
IntApfloatImpl instance from a double . |
IntApfloatImpl(long value,
long precision,
int radix)
Create a new
IntApfloatImpl instance from a long . |
IntApfloatImpl(PushbackReader in,
long precision,
int radix,
boolean isInteger)
Create a new
IntApfloatImpl instance reading from a stream. |
IntApfloatImpl(String value,
long precision,
int radix,
boolean isInteger)
Create a new
IntApfloatImpl instance from a String. |
IntDiskDataStorage()
Default constructor.
|
LongApfloatImpl(double value,
long precision,
int radix)
Create a new
LongApfloatImpl instance from a double . |
LongApfloatImpl(long value,
long precision,
int radix)
Create a new
LongApfloatImpl instance from a long . |
LongApfloatImpl(PushbackReader in,
long precision,
int radix,
boolean isInteger)
Create a new
LongApfloatImpl instance reading from a stream. |
LongApfloatImpl(String value,
long precision,
int radix,
boolean isInteger)
Create a new
LongApfloatImpl instance from a String. |
LongDiskDataStorage()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Apfloat |
Pi.BinarySplittingSeries.a(long n)
Binary splitting term.
|
Apfloat |
Pi.ChudnovskyBinarySplittingSeries.a(long n) |
Apfloat |
Pi.RamanujanBinarySplittingSeries.a(long n) |
protected Operation<Apfloat> |
PiAWT.getOperation(long precision,
int radix)
Get the calculation operation to execute.
|
protected Operation<Apfloat> |
PiParallelAWT.getOperation(long precision,
int radix) |
static void |
Pi.main(String[] args)
Command-line entry point.
|
static void |
PiParallel.main(String[] args)
Command-line entry point.
|
static void |
PiDistributed.main(String[] args)
Command-line entry point.
|
Apfloat |
Pi.BinarySplittingSeries.p(long n)
Binary splitting term.
|
Apfloat |
Pi.ChudnovskyBinarySplittingSeries.p(long n) |
Apfloat |
Pi.RamanujanBinarySplittingSeries.p(long n) |
Apfloat |
Pi.BinarySplittingSeries.q(long n)
Binary splitting term.
|
Apfloat |
Pi.ChudnovskyBinarySplittingSeries.q(long n) |
Apfloat |
Pi.RamanujanBinarySplittingSeries.q(long n) |
void |
PiDistributed.DistributedBinarySplittingPiCalculator.r(long n1,
long n2,
ApfloatHolder T,
ApfloatHolder Q,
ApfloatHolder P,
ApfloatHolder F,
PiDistributed.Node[] nodes)
Entry point for the distributed binary splitting algorithm.
|
void |
Pi.BinarySplittingPiCalculator.r(long n1,
long n2,
ApfloatHolder T,
ApfloatHolder Q,
ApfloatHolder P,
Pi.BinarySplittingProgressIndicator progressIndicator)
Entry point for the binary splitting algorithm.
|
void |
PiParallel.ParallelBinarySplittingPiCalculator.r(long n1,
long n2,
ApfloatHolder T,
ApfloatHolder Q,
ApfloatHolder P,
Pi.BinarySplittingProgressIndicator progressIndicator) |
static void |
Pi.run(long precision,
int radix,
Operation<Apfloat> operation)
Execute an operation and display some additional information.
|
Constructor and Description |
---|
ChudnovskyPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
ChudnovskyPiCalculator(Pi.BinarySplittingPiCalculator calculator,
long precision,
int radix)
Construct a pi calculator with the specified binary splitting algorithm.
|
DistributedChudnovskyPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
DistributedRamanujanPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
ParallelBinarySplittingPiCalculator(Pi.BinarySplittingSeries series)
Construct a parallel pi calculator with the specified precision and radix.
|
ParallelChudnovskyPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
ParallelChudnovskyPiCalculator(Pi.BinarySplittingPiCalculator calculator,
long precision,
int radix)
Construct a pi calculator with the specified binary splitting algorithm.
|
ParallelRamanujanPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
ParallelRamanujanPiCalculator(Pi.BinarySplittingPiCalculator calculator,
long precision,
int radix)
Construct a pi calculator with the specified binary splitting algorithm.
|
RamanujanPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
RamanujanPiCalculator(Pi.BinarySplittingPiCalculator calculator,
long precision,
int radix)
Construct a pi calculator with the specified binary splitting algorithm.
|
Modifier and Type | Method and Description |
---|---|
ApfloatImpl |
ApfloatImpl.absCeil()
Returns this
ApfloatImpl rounded away from zero. |
ApfloatImpl |
ApfloatImpl.absFloor()
Returns this
ApfloatImpl rounded towards zero. |
T |
AdditionStrategy.add(DataStorage.Iterator src1,
DataStorage.Iterator src2,
T carry,
DataStorage.Iterator dst,
long size)
Addition in some base.
|
ApfloatImpl |
ApfloatImpl.addOrSubtract(ApfloatImpl x,
boolean subtract)
Add or subtract an
ApfloatImpl to this object. |
T |
CarryCRTStepStrategy.carry(DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length,
T results,
T previousResults)
Propagate carries from the previous block computed with the CRT
method.
|
DataStorage |
CarryCRTStrategy.carryCRT(DataStorage resultMod0,
DataStorage resultMod1,
DataStorage resultMod2,
long resultSize)
Calculate the final result of a three-NTT convolution.
|
void |
DataStorage.Iterator.close()
Closes the iterator.
|
abstract void |
ArrayAccess.close()
Close this array access and commit any changes to the
underlying data storage if applicable.
|
int |
ApfloatImpl.compareTo(ApfloatImpl x)
Compare this
ApfloatImpl and another number. |
DataStorage |
ConvolutionStrategy.convolute(DataStorage x,
DataStorage y,
long resultSize)
Convolutes the two sets of data.
|
void |
DataStorage.copyFrom(DataStorage dataStorage)
Copies all data from another data storage to this data storage.
|
void |
DataStorage.copyFrom(DataStorage dataStorage,
long size)
Copies the specified number of elements from another data storage to this data storage.
|
ApfloatImpl |
ApfloatBuilder.createApfloat(double value,
long precision,
int radix)
Create a new
ApfloatImpl instance from a double . |
ApfloatImpl |
ApfloatBuilder.createApfloat(long value,
long precision,
int radix)
Create a new
ApfloatImpl instance from a long . |
ApfloatImpl |
ApfloatBuilder.createApfloat(PushbackReader in,
long precision,
int radix,
boolean isInteger)
Create a new
ApfloatImpl instance reading from a stream. |
ApfloatImpl |
ApfloatBuilder.createApfloat(String value,
long precision,
int radix,
boolean isInteger)
Create a new
ApfloatImpl instance from a String . |
DataStorage |
DataStorageBuilder.createCachedDataStorage(long size)
Get a data storage that is cached in memory, if possible, for the requested size of data.
|
DataStorage |
DataStorageBuilder.createDataStorage(DataStorage dataStorage)
Convert cached data storage to the appropriate normal data storage type.
|
DataStorage |
DataStorageBuilder.createDataStorage(long size)
Get an appropriate type of data storage for the requested size of data.
|
T |
CarryCRTStepStrategy.crt(DataStorage resultMod0,
DataStorage resultMod1,
DataStorage resultMod2,
DataStorage dataStorage,
long size,
long resultSize,
long offset,
long length)
Perform the Chinese Remainder Theorem (CRT) on each element
of the three result data sets to get the result of each element
modulo the product of the three moduli.
|
T |
AdditionStrategy.divide(DataStorage.Iterator src1,
T src2,
T carry,
DataStorage.Iterator dst,
long size)
Division in some base.
|
ApfloatImpl |
ApfloatImpl.divideShort(ApfloatImpl x)
Divide this
ApfloatImpl by an ApfloatImpl that is "short". |
long |
ApfloatImpl.equalDigits(ApfloatImpl x)
The number of equal digits in this
ApfloatImpl and another number. |
ApfloatImpl |
ApfloatImpl.frac()
Returns the fractional part of this
ApfloatImpl . |
void |
BuilderFactory.gc()
Do garbage collection and related things such as empty any reference queues.
|
<T> T |
DataStorage.Iterator.get(Class<T> type)
Gets the current element as a the specified element type.
|
ArrayAccess |
DataStorage.getArray(int mode,
int startColumn,
int columns,
int rows)
Maps a block of data to a memory array when the data is treated as a matrix.
|
ArrayAccess |
DataStorage.getArray(int mode,
long offset,
int length)
Gets an array access to the data of this data storage when
the data is treated as a linear block.
|
abstract Object |
ArrayAccess.getData()
Returns the array of this array access.
|
double |
DataStorage.Iterator.getDouble()
Gets the current element as a
double . |
double |
DataStorage.AbstractIterator.getDouble() |
double[] |
ArrayAccess.getDoubleData()
Returns the array of this array access as a
double[] . |
float |
DataStorage.Iterator.getFloat()
Gets the current element as a
float . |
float |
DataStorage.AbstractIterator.getFloat() |
float[] |
ArrayAccess.getFloatData()
Returns the array of this array access as a
float[] . |
int |
DataStorage.Iterator.getInt()
Gets the current element as an
int . |
int |
DataStorage.AbstractIterator.getInt() |
int[] |
ArrayAccess.getIntData()
Returns the array of this array access as an
int[] . |
long |
DataStorage.Iterator.getLong()
Gets the current element as a
long . |
long |
DataStorage.AbstractIterator.getLong() |
long[] |
ArrayAccess.getLongData()
Returns the array of this array access as a
long[] . |
long |
DataStorage.getSize()
Return the size of the data storage, or the length of this sub-sequence
if this data storage is a sub-sequence.
|
ArrayAccess |
DataStorage.getTransposedArray(int mode,
int startColumn,
int columns,
int rows)
Maps a transposed block of data to a memory array when the data is treated as a matrix.
|
protected abstract void |
DataStorage.implCopyFrom(DataStorage dataStorage,
long size)
Copies the specified number of elements from another data storage to this data storage.
|
protected abstract ArrayAccess |
DataStorage.implGetArray(int mode,
int startColumn,
int columns,
int rows)
Maps a block of data to a memory array when the data is treated as a matrix.
|
protected abstract ArrayAccess |
DataStorage.implGetArray(int mode,
long offset,
int length)
Gets an array access to the data of this data storage when it is treated as a linear block.
|
protected abstract long |
DataStorage.implGetSize()
Return the size of the whole data storage, not including sub-sequence settings.
|
protected abstract ArrayAccess |
DataStorage.implGetTransposedArray(int mode,
int startColumn,
int columns,
int rows)
Maps a transposed block of data to a memory array when the data is treated as a matrix.
|
protected abstract void |
DataStorage.implSetSize(long size)
Sets the size of the data storage.
|
protected abstract DataStorage |
DataStorage.implSubsequence(long offset,
long length)
Implementation of getting a subsequence of this data storage.
|
void |
NTTStrategy.inverseTransform(DataStorage dataStorage,
int modulus,
long totalTransformLength)
Perform an inverse transform on the data.
|
boolean |
ApfloatImpl.isOne()
Tests if this number is equal to 1.
|
boolean |
ApfloatImpl.isShort()
Returns if this
ApfloatImpl is "short". |
abstract DataStorage.Iterator |
DataStorage.iterator(int mode,
long startPosition,
long endPosition)
Constructs a new iterator.
|
ApfloatImpl |
ApfloatImpl.multiply(ApfloatImpl x)
Multiply this object by an
ApfloatImpl . |
T |
AdditionStrategy.multiplyAdd(DataStorage.Iterator src1,
DataStorage.Iterator src2,
T src3,
T carry,
DataStorage.Iterator dst,
long size)
Multiplication and addition in some base.
|
void |
NTTStepStrategy.multiplyElements(ArrayAccess arrayAccess,
int startRow,
int startColumn,
int rows,
int columns,
long length,
long totalTransformLength,
boolean isInverse,
int modulus)
Multiply each matrix element
(i, j) by wi * j / totalTransformLength . |
void |
NTTConvolutionStepStrategy.multiplyInPlace(DataStorage sourceAndDestination,
DataStorage source,
int modulus)
Linear multiplication in the number theoretic domain.
|
ApfloatImpl |
ApfloatImpl.negate()
Returns this
ApfloatImpl negated. |
void |
DataStorage.Iterator.next()
Advances the position in the stream by one element.
|
void |
DataStorage.AbstractIterator.next()
Advances the position in the stream by one element.
|
void |
MatrixStrategy.permuteToDoubleWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
n1/2 x 2*n2 matrix.
|
void |
MatrixStrategy.permuteToHalfWidth(ArrayAccess arrayAccess,
int n1,
int n2)
Permute the rows of the n1 x n2 matrix so that it is shaped like a
2*n1 x n2/2 matrix.
|
ApfloatImpl |
ApfloatImpl.precision(long precision)
Returns this
ApfloatImpl with the specified precision. |
long |
ApfloatImpl.scale()
Returns the scale of this
ApfloatImpl . |
<T> void |
DataStorage.Iterator.set(Class<T> type,
T value)
Sets the current element as the specified element type.
|
void |
DataStorage.Iterator.setDouble(double value)
Sets the current element as a
double . |
void |
DataStorage.AbstractIterator.setDouble(double value) |
void |
DataStorage.Iterator.setFloat(float value)
Sets the current element as a
float . |
void |
DataStorage.AbstractIterator.setFloat(float value) |
void |
DataStorage.Iterator.setInt(int value)
Sets the current element as an
int . |
void |
DataStorage.AbstractIterator.setInt(int value) |
void |
DataStorage.Iterator.setLong(long value)
Sets the current element as a
long . |
void |
DataStorage.AbstractIterator.setLong(long value) |
void |
DataStorage.setReadOnly()
Sets this data storage as read-only.
|
void |
DataStorage.setSize(long size)
Sets the size of the data storage.
|
void |
BuilderFactory.shutdown()
Shuts down the builder factory.
|
long |
ApfloatImpl.size()
Returns the size of the mantissa of this
ApfloatImpl . |
void |
NTTConvolutionStepStrategy.squareInPlace(DataStorage sourceAndDestination,
int modulus)
Linear squaring in the number theoretic domain.
|
DataStorage |
DataStorage.subsequence(long offset,
long length)
Get a subsequence of this data storage.
|
T |
AdditionStrategy.subtract(DataStorage.Iterator src1,
DataStorage.Iterator src2,
T carry,
DataStorage.Iterator dst,
long size)
Subtraction in some base.
|
String |
ApfloatImpl.toString(boolean pretty)
Convert this
ApfloatImpl to String . |
void |
NTTStrategy.transform(DataStorage dataStorage,
int modulus)
Perform a forward transform on the data.
|
void |
Factor3NTTStepStrategy.transformColumns(DataStorage dataStorage0,
DataStorage dataStorage1,
DataStorage dataStorage2,
long startColumn,
long columns,
long power2length,
long length,
boolean isInverse,
int modulus)
Transform the columns of a matrix using a 3-point transform.
|
void |
NTTStepStrategy.transformRows(ArrayAccess arrayAccess,
int length,
int count,
boolean isInverse,
boolean permute,
int modulus)
Transform the rows of the data matrix.
|
void |
MatrixStrategy.transpose(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a n1 x n2 matrix.
|
void |
MatrixStrategy.transposeSquare(ArrayAccess arrayAccess,
int n1,
int n2)
Transpose a square n1 x n1 block of n1 x n2 matrix.
|
void |
ApfloatImpl.writeTo(Writer out,
boolean pretty)
Print this
ApfloatImpl to a stream. |
Constructor and Description |
---|
AbstractIterator(int mode,
long startPosition,
long endPosition)
Construct a new iterator.
|
Copyright © 2019. All rights reserved.