Uses of Class
org.apfloat.ApfloatRuntimeException
-
Packages that use ApfloatRuntimeException Package Description org.apfloat The apfloat Application Programming Interface (API).org.apfloat.internal Default implementations of the apfloat Service Provider Interface (SPI).org.apfloat.spi The apfloat Service Provider Interface (SPI). -
-
Uses of ApfloatRuntimeException in org.apfloat
Subclasses of ApfloatRuntimeException in org.apfloat Modifier and Type Class 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.Methods in org.apfloat that throw ApfloatRuntimeException Modifier and Type Method Description static Apfloat
ApcomplexMath. abs(Apcomplex z)
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.Apfloat
FixedPrecisionApcomplexHelper. abs(Apcomplex z)
Absolute value.Apfloat
FixedPrecisionApfloatHelper. abs(Apfloat x)
Absolute value.static Apcomplex
ApcomplexMath. acos(Apcomplex z)
Inverse cosine.static Apfloat
ApfloatMath. acos(Apfloat x)
Inverse cosine.Apcomplex
FixedPrecisionApcomplexHelper. acos(Apcomplex z)
Arc cosine.Apfloat
FixedPrecisionApfloatHelper. acos(Apfloat x)
Arc cosine.static Apcomplex
ApcomplexMath. acosh(Apcomplex z)
Inverse hyperbolic cosine.static Apfloat
ApfloatMath. acosh(Apfloat x)
Inverse hyperbolic cosine.Apcomplex
FixedPrecisionApcomplexHelper. acosh(Apcomplex z)
Hyperbolic arc cosine.Apfloat
FixedPrecisionApfloatHelper. acosh(Apfloat x)
Hyperbolic arc cosine.Apcomplex
Apcomplex. add(Apcomplex z)
Adds two apcomplex numbers.Apfloat
Apfloat. add(Apfloat x)
Adds two apfloats.Apint
Apint. add(Apint x)
Adds two apints.Aprational
Aprational. add(Aprational x)
Adds two aprational numbers.Apcomplex
FixedPrecisionApcomplexHelper. add(Apcomplex z, Apcomplex w)
Addition.Apfloat
FixedPrecisionApfloatHelper. add(Apfloat x, Apfloat y)
Addition.static Apcomplex
ApcomplexMath. agm(Apcomplex a, Apcomplex b)
Arithmetic-geometric mean.static Apfloat
ApfloatMath. agm(Apfloat a, Apfloat 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 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.static Apfloat
ApfloatMath. asin(Apfloat x)
Inverse sine.Apcomplex
FixedPrecisionApcomplexHelper. asin(Apcomplex z)
Arc sine.Apfloat
FixedPrecisionApfloatHelper. asin(Apfloat x)
Arc sine.static Apcomplex
ApcomplexMath. asinh(Apcomplex z)
Inverse hyperbolic sine.static Apfloat
ApfloatMath. asinh(Apfloat x)
Inverse hyperbolic sine.Apcomplex
FixedPrecisionApcomplexHelper. asinh(Apcomplex z)
Hyperbolic arc sine.Apfloat
FixedPrecisionApfloatHelper. asinh(Apfloat x)
Hyperbolic arc sine.static Apcomplex
ApcomplexMath. atan(Apcomplex z)
Inverse tangent.static Apfloat
ApfloatMath. atan(Apfloat x)
Inverse tangent.Apcomplex
FixedPrecisionApcomplexHelper. atan(Apcomplex z)
Arc tangent.Apfloat
FixedPrecisionApfloatHelper. atan(Apfloat x)
Arc tangent.static Apfloat
ApfloatMath. atan2(Apfloat y, Apfloat x)
Converts cartesian coordinates to polar coordinates.Apfloat
FixedPrecisionApfloatHelper. atan2(Apfloat x, Apfloat y)
Angle of point.static Apcomplex
ApcomplexMath. atanh(Apcomplex z)
Inverse hyperbolic tangent.static Apfloat
ApfloatMath. atanh(Apfloat x)
Inverse hyperbolic tangent.Apcomplex
FixedPrecisionApcomplexHelper. atanh(Apcomplex z)
Hyperbolic arc tangent.Apfloat
FixedPrecisionApfloatHelper. atanh(Apfloat x)
Hyperbolic arc tangent.static Apcomplex
ApcomplexMath. cbrt(Apcomplex z)
Cube root.static Apfloat
ApfloatMath. cbrt(Apfloat x)
Cube root.static Apint[]
ApintMath. cbrt(Apint x)
Cube root and remainder.Apcomplex
FixedPrecisionApcomplexHelper. cbrt(Apcomplex z)
Cube root.Apfloat
FixedPrecisionApfloatHelper. cbrt(Apfloat x)
Cube root.Apint
Apfloat. ceil()
Ceiling function.static Apint
ApfloatMath. ceil(Apfloat x)
Ceiling function.Apint
Aprational. ceil()
Ceiling function.Apfloat
FixedPrecisionApfloatHelper. ceil(Apfloat x)
Ceiling function.Apcomplex
Apcomplex. conj()
Returns the complex conjugate of this apcomplex.Apcomplex
FixedPrecisionApcomplexHelper. conj(Apcomplex z)
Complex conjugate.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.Apfloat
FixedPrecisionApfloatHelper. copySign(Apfloat x, Apfloat y)
Copies the sign from one number to another.static Apcomplex
ApcomplexMath. cos(Apcomplex z)
Cosine.static Apfloat
ApfloatMath. cos(Apfloat x)
Cosine.Apcomplex
FixedPrecisionApcomplexHelper. cos(Apcomplex z)
Cosine.Apfloat
FixedPrecisionApfloatHelper. cos(Apfloat x)
Cosine.static Apcomplex
ApcomplexMath. cosh(Apcomplex z)
Hyperbolic cosine.static Apfloat
ApfloatMath. cosh(Apfloat x)
Hyperbolic cosine.Apcomplex
FixedPrecisionApcomplexHelper. cosh(Apcomplex z)
Hyperbolic cosine.Apfloat
FixedPrecisionApfloatHelper. 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.Apfloat
Apfloat. divide(Apfloat x)
Divides two apfloats.Apint
Apint. divide(Apint x)
Divides two apints.Aprational
Aprational. divide(Aprational x)
Divides two aprational numbers.Apcomplex
FixedPrecisionApcomplexHelper. divide(Apcomplex z, Apcomplex w)
Division.Apfloat
FixedPrecisionApfloatHelper. divide(Apfloat x, Apfloat y)
Division.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.static Apfloat
ApfloatMath. exp(Apfloat x)
Exponent function.Apcomplex
FixedPrecisionApcomplexHelper. exp(Apcomplex z)
Exponential function.Apfloat
FixedPrecisionApfloatHelper. exp(Apfloat x)
Exponential function.static Apint
ApintMath. factorial(long n)
Factorial function.static Apint
ApintMath. factorial(long n, int radix)
Factorial function.Apfloat
FixedPrecisionApfloatHelper. factorial(long n)
Factorial.Apfloat
FixedPrecisionApfloatHelper. factorial(long n, int radix)
Factorial.Apint
Apfloat. floor()
Floor function.static Apint
ApfloatMath. floor(Apfloat x)
Floor function.Apint
Aprational. floor()
Floor function.Apfloat
FixedPrecisionApfloatHelper. floor(Apfloat x)
Floor function.static Apfloat
ApfloatMath. fmod(Apfloat x, Apfloat y)
Returns x modulo y.Apfloat
FixedPrecisionApfloatHelper. fmod(Apfloat x, Apfloat y)
Modulus.Apfloat
Apfloat. frac()
Returns the fractional part.static Apfloat
ApfloatMath. frac(Apfloat x)
Extracts fractional part.Apint
Apint. frac()
Returns the fractional part.Aprational
Aprational. frac()
Returns the fractional part.Apfloat
FixedPrecisionApfloatHelper. frac(Apfloat x)
Extract fractional part.static Apcomplex
ApcomplexMath. gamma(Apcomplex z)
Gamma function.Apcomplex
FixedPrecisionApcomplexHelper. gamma(Apcomplex z)
Gamma function.Apfloat
FixedPrecisionApfloatHelper. gamma(Apfloat x)
Gamma function.static Apint
ApintMath. gcd(Apint a, Apint b)
Greatest common divisor.protected ApfloatImpl
Apfloat. getImpl(long precision)
Returns anApfloatImpl
representing the actual instance of this apfloat up to the requested precision.protected ApfloatImpl
Apint. getImpl(long precision)
Returns anApfloatImpl
representing this apint up to the requested precision.protected ApfloatImpl
Aprational. getImpl(long precision)
Returns anApfloatImpl
representing the approximation of this aprational up to the requested precision.static Apcomplex
ApcomplexMath. inverseRoot(Apcomplex z, long n)
Inverse positive integer root.static Apcomplex
ApcomplexMath. inverseRoot(Apcomplex z, long n, long k)
Inverse positive integer 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.Apcomplex
FixedPrecisionApcomplexHelper. inverseRoot(Apcomplex z, long n)
Inverse root.Apcomplex
FixedPrecisionApcomplexHelper. inverseRoot(Apcomplex z, long n, long k)
Inverse root with branch.Apfloat
FixedPrecisionApfloatHelper. inverseRoot(Apfloat x, long n)
Inverse root.boolean
Apcomplex. isInteger()
Returns if this number has an integer value.boolean
Apfloat. isInteger()
Returns if this number has an integer value.boolean
Apint. isInteger()
Returns if this number has an integer value.boolean
Aprational. isInteger()
Returns if this number has an integer value.boolean
Apfloat. isShort()
Returns if this apfloat is "short".boolean
Apint. isShort()
Returns if this apint is "short".boolean
Aprational. isShort()
Returns if this aprational 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.static Apcomplex
ApcomplexMath. log(Apcomplex z, Apcomplex w)
Logarithm in arbitrary base.static Apfloat
ApfloatMath. log(Apfloat x)
Natural logarithm.static Apfloat
ApfloatMath. log(Apfloat x, Apfloat b)
Logarithm in arbitrary base.Apcomplex
FixedPrecisionApcomplexHelper. log(Apcomplex z)
Natural logarithm.Apcomplex
FixedPrecisionApcomplexHelper. log(Apcomplex z, Apcomplex w)
Logarithm in specified base.Apfloat
FixedPrecisionApfloatHelper. log(Apfloat x)
Natural logarithm.Apfloat
FixedPrecisionApfloatHelper. log(Apfloat x, Apfloat b)
Logarithm in specified base.static Apfloat
ApfloatMath. logRadix(long precision, int radix)
Gets or calculates logarithm of a radix to required precision.Apfloat
FixedPrecisionApfloatHelper. logRadix(int radix)
Logarithm.Apfloat
FixedPrecisionApfloatHelper. max(Apfloat x, Apfloat y)
Maximum value.Apfloat
FixedPrecisionApfloatHelper. min(Apfloat x, Apfloat y)
Minimum value.Apfloat
Apfloat. mod(Apfloat x)
Calculates the remainder when divided by an apfloat.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. mod(Apfloat x, Apfloat y)
Modulus.static Apfloat[]
ApfloatMath. modf(Apfloat x)
Split to integer and fractional parts.Apfloat[]
FixedPrecisionApfloatHelper. 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.Apfloat
Apfloat. multiply(Apfloat x)
Multiplies two apfloats.Apint
Apint. multiply(Apint x)
Multiplies two apints.Aprational
Aprational. multiply(Aprational x)
Multiplies two aprational numbers.Apcomplex
FixedPrecisionApcomplexHelper. multiply(Apcomplex z, Apcomplex w)
Multiplication.Apfloat
FixedPrecisionApfloatHelper. multiply(Apfloat x, Apfloat y)
Multiplication.static Apfloat
ApfloatMath. multiplyAdd(Apfloat a, Apfloat b, Apfloat c, Apfloat d)
Fused multiply-add.Apfloat
FixedPrecisionApfloatHelper. multiplyAdd(Apfloat a, Apfloat b, Apfloat c, Apfloat d)
Fused multiply-add.static Apfloat
ApfloatMath. multiplySubtract(Apfloat a, Apfloat b, Apfloat c, Apfloat d)
Fused multiply-subtract.Apfloat
FixedPrecisionApfloatHelper. multiplySubtract(Apfloat a, Apfloat b, Apfloat c, Apfloat d)
Fused multiply-subtract.Apcomplex
Apcomplex. negate()
Negative value.static Apcomplex
ApcomplexMath. negate(Apcomplex z)
Deprecated.UseApcomplex.negate()
.Apfloat
Apfloat. negate()
Negative value.static Apfloat
ApfloatMath. negate(Apfloat x)
Deprecated.UseApfloat.negate()
.Apint
Apint. negate()
Negative value.static Apint
ApintMath. negate(Apint x)
Deprecated.UseApint.negate()
.Aprational
Aprational. negate()
Negative value.static Aprational
AprationalMath. negate(Aprational x)
Deprecated.UseAprational.negate()
.Apcomplex
FixedPrecisionApcomplexHelper. negate(Apcomplex z)
Negation.Apfloat
FixedPrecisionApfloatHelper. negate(Apfloat x)
Negation.static Apfloat
ApcomplexMath. norm(Apcomplex z)
Norm.Apfloat
FixedPrecisionApcomplexHelper. norm(Apcomplex z)
Norm.static Apfloat
ApfloatMath. pi(long precision)
Calculates π.static Apfloat
ApfloatMath. pi(long precision, int radix)
Calculates π.Apfloat
FixedPrecisionApfloatHelper. pi()
π.Apfloat
FixedPrecisionApfloatHelper. pi(int radix)
π.static Apcomplex
ApcomplexMath. pow(Apcomplex z, long n)
Integer power.static Apcomplex
ApcomplexMath. pow(Apcomplex z, Apcomplex w)
Arbitrary power.static Apfloat
ApfloatMath. pow(Apfloat x, long n)
Integer power.static Apfloat
ApfloatMath. pow(Apfloat x, Apfloat y)
Arbitrary power.static Apint
ApintMath. pow(Apint x, long n)
Integer power.static Aprational
AprationalMath. pow(Aprational x, long n)
Integer power.Apcomplex
FixedPrecisionApcomplexHelper. pow(Apcomplex z, long n)
Integer power.Apcomplex
FixedPrecisionApcomplexHelper. pow(Apcomplex z, Apcomplex w)
Power.Apfloat
FixedPrecisionApfloatHelper. pow(Apfloat x, long n)
Integer power.Apfloat
FixedPrecisionApfloatHelper. pow(Apfloat x, Apfloat y)
Power.long
Apcomplex. precision()
Returns the precision of this apcomplex.Apcomplex
Apcomplex. precision(long precision)
Returns an apcomplex with the same value as this apcomplex accurate to the specified precision.long
Apfloat. precision()
Returns the precision of this apfloat.Apfloat
Apfloat. precision(long precision)
Returns an apfloat with the same value as this apfloat accurate to the specified precision.long
Aprational. precision()
Returns the precision of this aprational.static Apcomplex
ApcomplexMath. product(Apcomplex... z)
Product of numbers.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.Apcomplex
FixedPrecisionApcomplexHelper. product(Apcomplex... z)
Product.Apfloat
FixedPrecisionApfloatHelper. product(Apfloat... x)
Product.Apfloat
FixedPrecisionApfloatHelper. random()
Return a uniformly distributed random number0 ≤ x < 1
.Apfloat
FixedPrecisionApfloatHelper. random(int radix)
Return a uniformly distributed random number0 ≤ x < 1
.Apfloat
FixedPrecisionApfloatHelper. randomGaussian()
Return a normally distributed random number with mean 0 and standard deviation 1.Apfloat
FixedPrecisionApfloatHelper. randomGaussian(int radix)
Return a normally distributed random number with mean 0 and standard deviation 1.static Apcomplex
ApcomplexMath. root(Apcomplex z, long n)
Positive integer root.static Apcomplex
ApcomplexMath. root(Apcomplex z, long n, long k)
Positive integer 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.Apcomplex
FixedPrecisionApcomplexHelper. root(Apcomplex z, long n)
Root.Apcomplex
FixedPrecisionApcomplexHelper. root(Apcomplex z, long n, long k)
Root with branch.Apfloat
FixedPrecisionApfloatHelper. root(Apfloat x, long n)
Root.static Apfloat
ApfloatMath. round(Apfloat x, long precision, RoundingMode roundingMode)
Rounds the given number to the specified precision with the 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.Apfloat
FixedPrecisionApfloatHelper. round(Apfloat x, RoundingMode roundingMode)
Round with specified rounding mode.long
Apcomplex. scale()
Returns the scale of this apcomplex.static Apcomplex
ApcomplexMath. scale(Apcomplex z, long scale)
Multiply by a power of the radix.long
Apfloat. scale()
Returns the scale of this apfloat.static Apfloat
ApfloatMath. scale(Apfloat x, long scale)
Multiply by a power of the radix.long
Apint. scale()
Returns the scale of this apint.static Apint
ApintMath. scale(Apint x, long scale)
Multiply by a power of the radix.long
Aprational. scale()
Returns the scale of this aprational.static Aprational
AprationalMath. scale(Aprational x, 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 Apcomplex
ApcomplexMath. sin(Apcomplex z)
Sine.static Apfloat
ApfloatMath. sin(Apfloat x)
Sine.Apcomplex
FixedPrecisionApcomplexHelper. sin(Apcomplex z)
Sine.Apfloat
FixedPrecisionApfloatHelper. sin(Apfloat x)
Sine.static Apcomplex
ApcomplexMath. sinh(Apcomplex z)
Hyperbolic sine.static Apfloat
ApfloatMath. sinh(Apfloat x)
Hyperbolic sine.Apcomplex
FixedPrecisionApcomplexHelper. sinh(Apcomplex z)
Hyperbolic sine.Apfloat
FixedPrecisionApfloatHelper. sinh(Apfloat x)
Hyperbolic sine.long
Apcomplex. size()
Returns the size of this apcomplex.long
Apfloat. size()
Returns the size of this apfloat.long
Apint. size()
Returns the size of this apint.long
Aprational. size()
Returns the size of this aprational.static Apcomplex
ApcomplexMath. sqrt(Apcomplex z)
Square root.static Apfloat
ApfloatMath. sqrt(Apfloat x)
Square root.static Apint[]
ApintMath. sqrt(Apint x)
Square root and remainder.Apcomplex
FixedPrecisionApcomplexHelper. sqrt(Apcomplex z)
Square root.Apfloat
FixedPrecisionApfloatHelper. sqrt(Apfloat x)
Square root.Apcomplex
Apcomplex. subtract(Apcomplex z)
Subtracts two apcomplex numbers.Apfloat
Apfloat. subtract(Apfloat x)
Subtracts two apfloats.Apint
Apint. subtract(Apint x)
Subtracts two apints.Aprational
Aprational. subtract(Aprational x)
Subtracts two aprational numbers.Apcomplex
FixedPrecisionApcomplexHelper. subtract(Apcomplex z, Apcomplex w)
Subtraction.Apfloat
FixedPrecisionApfloatHelper. subtract(Apfloat x, Apfloat y)
Subtraction.static Apcomplex
ApcomplexMath. sum(Apcomplex... z)
Sum of numbers.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.Apcomplex
FixedPrecisionApcomplexHelper. sum(Apcomplex... z)
Sum.Apfloat
FixedPrecisionApfloatHelper. sum(Apfloat... x)
Sum.static Apcomplex
ApcomplexMath. tan(Apcomplex z)
Tangent.static Apfloat
ApfloatMath. tan(Apfloat x)
Tangent.Apcomplex
FixedPrecisionApcomplexHelper. tan(Apcomplex z)
Tangent.Apfloat
FixedPrecisionApfloatHelper. tan(Apfloat x)
Tangent.static Apcomplex
ApcomplexMath. tanh(Apcomplex z)
Hyperbolic tangent.static Apfloat
ApfloatMath. tanh(Apfloat x)
Hyperbolic tangent.Apcomplex
FixedPrecisionApcomplexHelper. tanh(Apcomplex z)
Hyperbolic tangent.Apfloat
FixedPrecisionApfloatHelper. tanh(Apfloat x)
Hyperbolic tangent.static Apfloat
ApfloatMath. toDegrees(Apfloat x)
Converts an angle measured in radians to degrees.Apfloat
FixedPrecisionApfloatHelper. toDegrees(Apfloat x)
Convert radians to degrees.static Apfloat
ApfloatMath. toRadians(Apfloat x)
Converts an angle measured in degrees to radians.Apfloat
FixedPrecisionApfloatHelper. toRadians(Apfloat x)
Convert 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.Apint
Apint. toRadix(int radix)
Convert this apint to the specified radix.Aprational
Aprational. toRadix(int radix)
Convert this aprational 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
Apint. toString(boolean pretty)
Returns a string representation of this aprational.String
Aprational. toString(boolean pretty)
Returns a string representation of this aprational.Apint
Apfloat. truncate()
Truncates fractional part.static Apint
ApfloatMath. truncate(Apfloat x)
Truncates fractional part.Apint
Aprational. truncate()
Truncates fractional part.Apfloat
FixedPrecisionApfloatHelper. truncate(Apfloat x)
Truncate fractional part.Apcomplex
FixedPrecisionApcomplexHelper. valueOf(Apcomplex z)
Returns the value with the specified precision.static Apcomplex
ApcomplexMath. w(Apcomplex z)
Lambert W function.static Apcomplex
ApcomplexMath. w(Apcomplex z, long k)
Lambert W function for the specified branch.static Apfloat
ApfloatMath. w(Apfloat x)
Lambert W function.Apcomplex
FixedPrecisionApcomplexHelper. w(Apcomplex z)
Lambert W function.Apcomplex
FixedPrecisionApcomplexHelper. w(Apcomplex z, long k)
Lambert W function for the specified branch.Apfloat
FixedPrecisionApfloatHelper. w(Apfloat x)
Lambert W function.void
Apcomplex. writeTo(Writer out)
Write a string representation of this apcomplex to aWriter
.void
Apcomplex. writeTo(Writer out, boolean pretty)
Write a string representation of this apcomplex to aWriter
.void
Apfloat. writeTo(Writer out, boolean pretty)
Write a string representation of this apfloat to aWriter
.void
Apint. writeTo(Writer out, boolean pretty)
Write a string representation of this aprational to aWriter
.void
Aprational. writeTo(Writer out)
Write a string representation of this aprational to aWriter
.void
Aprational. writeTo(Writer out, boolean pretty)
Write a string representation of this aprational to aWriter
.Constructors in org.apfloat that throw ApfloatRuntimeException Constructor Description Apcomplex(PushbackReader in)
Reads an apcomplex from a reader.Apcomplex(String value)
Constructs an apcomplex from a string.Apfloat(double value)
Constructs an apfloat from the specifieddouble
.Apfloat(double value, long precision)
Constructs an apfloat from the specifieddouble
and precision.Apfloat(double value, long precision, int radix)
Constructs an apfloat from the specifieddouble
, precision and radix.Apfloat(float value)
Constructs an apfloat from the specifiedfloat
.Apfloat(float value, long precision)
Constructs an apfloat from the specifiedfloat
and precision.Apfloat(float value, long precision, int radix)
Constructs an apfloat from the specifiedfloat
, precision and radix.Apfloat(long value)
Constructs an apfloat from the specifiedlong
.Apfloat(long value, long precision)
Constructs an apfloat from the specifiedlong
and precision.Apfloat(long value, long precision, int radix)
Constructs an apfloat from the specifiedlong
, 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.Apfloat(BigDecimal value)
Creates an apfloat from aBigDecimal
.Apfloat(BigDecimal value, long precision)
Creates an apfloat from aBigDecimal
.Apfloat(BigInteger value)
Constructs an apfloat from aBigInteger
.Apfloat(BigInteger value, long precision)
Constructs an apfloat from aBigInteger
with the specified precision.Apfloat(BigInteger value, long precision, int radix)
Constructs an apfloat from aBigInteger
with the specified precision and radix.Apint(long value)
Constructs an apfloat from the specifiedlong
.Apint(long value, int radix)
Constructs an apfloat from the specifiedlong
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.Apint(BigInteger value)
Constructs an apint from aBigInteger
.Apint(BigInteger value, int radix)
Constructs an apint from aBigInteger
using the specified radix.Aprational(double value)
Constructs an aprational from adouble
.Aprational(double value, int radix)
Constructs an aprational from adouble
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.Aprational(BigInteger value)
Constructs an aprational from aBigInteger
.Aprational(BigInteger value, int radix)
Constructs an aprational from aBigInteger
using the specified 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. -
Uses of ApfloatRuntimeException in org.apfloat.internal
Subclasses of ApfloatRuntimeException in org.apfloat.internal Modifier and Type Class 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.Methods in org.apfloat.internal that throw ApfloatRuntimeException Modifier and Type Method Description ApfloatImpl
DoubleApfloatImpl. absCeil()
ApfloatImpl
FloatApfloatImpl. absCeil()
ApfloatImpl
IntApfloatImpl. absCeil()
ApfloatImpl
LongApfloatImpl. absCeil()
ApfloatImpl
DoubleApfloatImpl. absFloor()
ApfloatImpl
FloatApfloatImpl. absFloor()
ApfloatImpl
IntApfloatImpl. 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
FloatApfloatImpl. addOrSubtract(ApfloatImpl x, boolean subtract)
ApfloatImpl
IntApfloatImpl. 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
DoubleMemoryArrayAccess. close()
void
FloatMemoryArrayAccess. close()
void
IntMemoryArrayAccess. close()
void
LongMemoryArrayAccess. close()
int
DoubleApfloatImpl. compareTo(ApfloatImpl x)
int
FloatApfloatImpl. compareTo(ApfloatImpl x)
int
IntApfloatImpl. compareTo(ApfloatImpl x)
int
LongApfloatImpl. compareTo(ApfloatImpl x)
DataStorage
DoubleKaratsubaConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
DoubleMediumConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
DoubleShortConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
FloatKaratsubaConvolutionStrategy. 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
IntKaratsubaConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
IntMediumConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
IntShortConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
LongKaratsubaConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
LongMediumConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
LongShortConvolutionStrategy. convolute(DataStorage x, DataStorage y, long resultSize)
DataStorage
ThreeNTTConvolutionStrategy. 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
DoubleApfloatBuilder. createApfloat(double value, long precision, int radix)
ApfloatImpl
DoubleApfloatBuilder. createApfloat(long value, long precision, int radix)
ApfloatImpl
DoubleApfloatBuilder. createApfloat(PushbackReader in, long precision, int radix, boolean isInteger)
ApfloatImpl
DoubleApfloatBuilder. createApfloat(String value, long precision, int radix, boolean isInteger)
ApfloatImpl
FloatApfloatBuilder. createApfloat(double value, long precision, int radix)
ApfloatImpl
FloatApfloatBuilder. createApfloat(long value, long precision, int radix)
ApfloatImpl
FloatApfloatBuilder. createApfloat(PushbackReader in, long precision, int radix, boolean isInteger)
ApfloatImpl
FloatApfloatBuilder. createApfloat(String value, long precision, int radix, boolean isInteger)
ApfloatImpl
IntApfloatBuilder. createApfloat(double value, long precision, int radix)
ApfloatImpl
IntApfloatBuilder. createApfloat(long value, long precision, int radix)
ApfloatImpl
IntApfloatBuilder. createApfloat(PushbackReader in, long precision, int radix, boolean isInteger)
ApfloatImpl
IntApfloatBuilder. createApfloat(String value, long precision, int radix, boolean isInteger)
ApfloatImpl
LongApfloatBuilder. createApfloat(double value, long precision, int radix)
ApfloatImpl
LongApfloatBuilder. createApfloat(long value, long precision, int radix)
ApfloatImpl
LongApfloatBuilder. createApfloat(PushbackReader in, long precision, int radix, boolean isInteger)
ApfloatImpl
LongApfloatBuilder. createApfloat(String value, long precision, int radix, boolean isInteger)
protected abstract DataStorage
AbstractDataStorageBuilder. createCachedDataStorage()
Create a cached data storage.DataStorage
AbstractDataStorageBuilder. createCachedDataStorage(long size)
protected DataStorage
DoubleDataStorageBuilder. createCachedDataStorage()
protected DataStorage
FloatDataStorageBuilder. createCachedDataStorage()
protected DataStorage
IntDataStorageBuilder. createCachedDataStorage()
protected DataStorage
LongDataStorageBuilder. createCachedDataStorage()
protected DataStorage
ThreeNTTConvolutionStrategy. createCachedDataStorage(long size)
Create a cached (if possible) data storage for the specified number of elements.DataStorage
AbstractDataStorageBuilder. createDataStorage(long size)
DataStorage
AbstractDataStorageBuilder. createDataStorage(DataStorage dataStorage)
protected DataStorage
ThreeNTTConvolutionStrategy. createDataStorage(DataStorage dataStorage)
Create a cached data storage from the (possibly) cached data storage.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
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
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
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 abstract DataStorage
AbstractDataStorageBuilder. createNonCachedDataStorage()
Create a non-cached data storage.protected DataStorage
DoubleDataStorageBuilder. createNonCachedDataStorage()
protected DataStorage
FloatDataStorageBuilder. createNonCachedDataStorage()
protected DataStorage
IntDataStorageBuilder. createNonCachedDataStorage()
protected DataStorage
LongDataStorageBuilder. createNonCachedDataStorage()
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
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
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
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.double[]
DoubleCarryCRTStepStrategy. 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)
int[]
IntCarryCRTStepStrategy. crt(DataStorage resultMod0, DataStorage resultMod1, DataStorage resultMod2, DataStorage dataStorage, long size, long resultSize, long offset, long length)
long[]
LongCarryCRTStepStrategy. 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
FloatApfloatImpl. divideShort(ApfloatImpl x)
ApfloatImpl
IntApfloatImpl. divideShort(ApfloatImpl x)
ApfloatImpl
LongApfloatImpl. divideShort(ApfloatImpl x)
long
DoubleApfloatImpl. equalDigits(ApfloatImpl x)
long
FloatApfloatImpl. equalDigits(ApfloatImpl x)
long
IntApfloatImpl. equalDigits(ApfloatImpl x)
long
LongApfloatImpl. equalDigits(ApfloatImpl x)
ApfloatImpl
DoubleApfloatImpl. frac()
ApfloatImpl
FloatApfloatImpl. frac()
ApfloatImpl
IntApfloatImpl. frac()
ApfloatImpl
LongApfloatImpl. frac()
void
DoubleBuilderFactory. gc()
void
FloatBuilderFactory. gc()
void
IntBuilderFactory. gc()
void
LongBuilderFactory. gc()
protected void
DiskDataStorage. implCopyFrom(DataStorage dataStorage, long size)
protected void
DoubleMemoryDataStorage. implCopyFrom(DataStorage dataStorage, long size)
protected void
FloatMemoryDataStorage. implCopyFrom(DataStorage dataStorage, long size)
protected void
IntMemoryDataStorage. 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
DoubleDiskDataStorage. implGetArray(int mode, long offset, int length)
protected ArrayAccess
DoubleMemoryDataStorage. implGetArray(int mode, int startColumn, int columns, int rows)
protected ArrayAccess
DoubleMemoryDataStorage. implGetArray(int mode, long offset, int length)
protected ArrayAccess
FloatDiskDataStorage. implGetArray(int mode, long offset, int length)
protected ArrayAccess
FloatMemoryDataStorage. implGetArray(int mode, int startColumn, int columns, int rows)
protected ArrayAccess
FloatMemoryDataStorage. implGetArray(int mode, long offset, int length)
protected ArrayAccess
IntDiskDataStorage. implGetArray(int mode, long offset, int length)
protected ArrayAccess
IntMemoryDataStorage. implGetArray(int mode, int startColumn, int columns, int rows)
protected ArrayAccess
IntMemoryDataStorage. implGetArray(int mode, long offset, int length)
protected ArrayAccess
LongDiskDataStorage. implGetArray(int mode, long offset, int length)
protected ArrayAccess
LongMemoryDataStorage. implGetArray(int mode, int startColumn, int columns, int rows)
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
DoubleMemoryDataStorage. implGetTransposedArray(int mode, int startColumn, int columns, int rows)
protected ArrayAccess
FloatMemoryDataStorage. implGetTransposedArray(int mode, int startColumn, int columns, int rows)
protected ArrayAccess
IntMemoryDataStorage. 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
DoubleMemoryDataStorage. implSetSize(long size)
protected void
FloatMemoryDataStorage. implSetSize(long size)
protected void
IntMemoryDataStorage. implSetSize(long size)
protected void
LongMemoryDataStorage. implSetSize(long size)
protected DataStorage
DoubleDiskDataStorage. implSubsequence(long offset, long length)
protected DataStorage
DoubleMemoryDataStorage. implSubsequence(long offset, long length)
protected DataStorage
FloatDiskDataStorage. implSubsequence(long offset, long length)
protected DataStorage
FloatMemoryDataStorage. implSubsequence(long offset, long length)
protected DataStorage
IntDiskDataStorage. implSubsequence(long offset, long length)
protected DataStorage
IntMemoryDataStorage. implSubsequence(long offset, long length)
protected DataStorage
LongDiskDataStorage. 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 abstract void
AbstractStepFNTStrategy. inverseTransform(DataStorage dataStorage, int n1, int n2, long length, long totalTransformLength, int modulus)
Inverse transform the data in steps.void
AbstractStepFNTStrategy. inverseTransform(DataStorage dataStorage, int modulus, long totalTransformLength)
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)
protected void
SixStepFNTStrategy. inverseTransform(DataStorage dataStorage, int n1, int n2, long length, long totalTransformLength, int modulus)
protected void
TwoPassFNTStrategy. inverseTransform(DataStorage dataStorage, int n1, int n2, long length, long totalTransformLength, int modulus)
protected abstract boolean
AbstractDataStorageBuilder. isCached(DataStorage dataStorage)
Test if the data storage is of cached type.protected boolean
DoubleDataStorageBuilder. isCached(DataStorage dataStorage)
protected boolean
FloatDataStorageBuilder. isCached(DataStorage dataStorage)
protected boolean
IntDataStorageBuilder. isCached(DataStorage dataStorage)
protected boolean
LongDataStorageBuilder. isCached(DataStorage dataStorage)
boolean
DoubleApfloatImpl. isOne()
boolean
FloatApfloatImpl. isOne()
boolean
IntApfloatImpl. isOne()
boolean
LongApfloatImpl. isOne()
boolean
DoubleApfloatImpl. isShort()
boolean
FloatApfloatImpl. isShort()
boolean
IntApfloatImpl. isShort()
boolean
LongApfloatImpl. isShort()
DataStorage.Iterator
DoubleDiskDataStorage. iterator(int mode, long startPosition, long endPosition)
DataStorage.Iterator
DoubleMemoryDataStorage. iterator(int mode, long startPosition, long endPosition)
DataStorage.Iterator
FloatDiskDataStorage. iterator(int mode, long startPosition, long endPosition)
DataStorage.Iterator
FloatMemoryDataStorage. 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
LongDiskDataStorage. iterator(int mode, long startPosition, long endPosition)
DataStorage.Iterator
LongMemoryDataStorage. iterator(int mode, long startPosition, long endPosition)
ApfloatImpl
DoubleApfloatImpl. multiply(ApfloatImpl x)
ApfloatImpl
FloatApfloatImpl. multiply(ApfloatImpl x)
ApfloatImpl
IntApfloatImpl. 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
DoubleNTTStepStrategy. 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
IntNTTStepStrategy. 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
DoubleNTTConvolutionStepStrategy. multiplyInPlace(DataStorage sourceAndDestination, DataStorage source, int modulus)
void
FloatNTTConvolutionStepStrategy. multiplyInPlace(DataStorage sourceAndDestination, DataStorage source, int modulus)
void
IntNTTConvolutionStepStrategy. multiplyInPlace(DataStorage sourceAndDestination, DataStorage source, int modulus)
void
LongNTTConvolutionStepStrategy. multiplyInPlace(DataStorage sourceAndDestination, DataStorage source, int modulus)
ApfloatImpl
DoubleApfloatImpl. negate()
ApfloatImpl
FloatApfloatImpl. negate()
ApfloatImpl
IntApfloatImpl. negate()
ApfloatImpl
LongApfloatImpl. negate()
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
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
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
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.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
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.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
FloatApfloatImpl. scale()
long
IntApfloatImpl. 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 withDiskDataStorage.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 withDiskDataStorage.implGetTransposedArray(int,int,int,int)
.void
DoubleBuilderFactory. shutdown()
void
FloatBuilderFactory. shutdown()
void
IntBuilderFactory. shutdown()
void
LongBuilderFactory. shutdown()
long
DoubleApfloatImpl. size()
long
FloatApfloatImpl. size()
long
IntApfloatImpl. size()
long
LongApfloatImpl. size()
void
DoubleNTTConvolutionStepStrategy. squareInPlace(DataStorage sourceAndDestination, int modulus)
void
FloatNTTConvolutionStepStrategy. squareInPlace(DataStorage sourceAndDestination, int modulus)
void
IntNTTConvolutionStepStrategy. 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
FloatApfloatImpl. toString(boolean pretty)
String
IntApfloatImpl. 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
AbstractStepFNTStrategy. transform(DataStorage dataStorage, int modulus)
protected abstract void
AbstractStepFNTStrategy. transform(DataStorage dataStorage, int n1, int n2, long length, int modulus)
Transform the data in steps.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)
protected void
SixStepFNTStrategy. transform(DataStorage dataStorage, int n1, int n2, long length, int modulus)
protected void
TwoPassFNTStrategy. transform(DataStorage dataStorage, int n1, int n2, long length, 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
IntFactor3NTTStepStrategy. 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
DoubleNTTStepStrategy. 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
IntNTTStepStrategy. 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
DoubleMatrixStrategy. 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
LongMatrixStrategy. transpose(ArrayAccess arrayAccess, int n1, int n2)
Transpose a 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
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
LongMatrixStrategy. 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
FloatApfloatImpl. writeTo(Writer out, boolean pretty)
void
IntApfloatImpl. writeTo(Writer out, boolean pretty)
void
LongApfloatImpl. writeTo(Writer out, boolean pretty)
Constructors in org.apfloat.internal that throw ApfloatRuntimeException Constructor Description DiskDataStorage()
Default constructor.DoubleApfloatImpl(double value, long precision, int radix)
Create a newDoubleApfloatImpl
instance from adouble
.DoubleApfloatImpl(long value, long precision, int radix)
Create a newDoubleApfloatImpl
instance from along
.DoubleApfloatImpl(PushbackReader in, long precision, int radix, boolean isInteger)
Create a newDoubleApfloatImpl
instance reading from a stream.DoubleApfloatImpl(String value, long precision, int radix, boolean isInteger)
Create a newDoubleApfloatImpl
instance from a String.DoubleDiskDataStorage()
Default constructor.FloatApfloatImpl(double value, long precision, int radix)
Create a newFloatApfloatImpl
instance from adouble
.FloatApfloatImpl(long value, long precision, int radix)
Create a newFloatApfloatImpl
instance from along
.FloatApfloatImpl(PushbackReader in, long precision, int radix, boolean isInteger)
Create a newFloatApfloatImpl
instance reading from a stream.FloatApfloatImpl(String value, long precision, int radix, boolean isInteger)
Create a newFloatApfloatImpl
instance from a String.FloatDiskDataStorage()
Default constructor.IntApfloatImpl(double value, long precision, int radix)
Create a newIntApfloatImpl
instance from adouble
.IntApfloatImpl(long value, long precision, int radix)
Create a newIntApfloatImpl
instance from along
.IntApfloatImpl(PushbackReader in, long precision, int radix, boolean isInteger)
Create a newIntApfloatImpl
instance reading from a stream.IntApfloatImpl(String value, long precision, int radix, boolean isInteger)
Create a newIntApfloatImpl
instance from a String.IntDiskDataStorage()
Default constructor.LongApfloatImpl(double value, long precision, int radix)
Create a newLongApfloatImpl
instance from adouble
.LongApfloatImpl(long value, long precision, int radix)
Create a newLongApfloatImpl
instance from along
.LongApfloatImpl(PushbackReader in, long precision, int radix, boolean isInteger)
Create a newLongApfloatImpl
instance reading from a stream.LongApfloatImpl(String value, long precision, int radix, boolean isInteger)
Create a newLongApfloatImpl
instance from a String.LongDiskDataStorage()
Default constructor. -
Uses of ApfloatRuntimeException in org.apfloat.spi
Methods in org.apfloat.spi that throw ApfloatRuntimeException Modifier and Type Method Description ApfloatImpl
ApfloatImpl. absCeil()
Returns thisApfloatImpl
rounded away from zero.ApfloatImpl
ApfloatImpl. absFloor()
Returns thisApfloatImpl
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 anApfloatImpl
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.abstract void
ArrayAccess. close()
Close this array access and commit any changes to the underlying data storage if applicable.void
DataStorage.Iterator. close()
Closes the iterator.int
ApfloatImpl. compareTo(ApfloatImpl x)
Compare thisApfloatImpl
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 newApfloatImpl
instance from adouble
.ApfloatImpl
ApfloatBuilder. createApfloat(long value, long precision, int radix)
Create a newApfloatImpl
instance from along
.ApfloatImpl
ApfloatBuilder. createApfloat(PushbackReader in, long precision, int radix, boolean isInteger)
Create a newApfloatImpl
instance reading from a stream.ApfloatImpl
ApfloatBuilder. createApfloat(String value, long precision, int radix, boolean isInteger)
Create a newApfloatImpl
instance from aString
.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(long size)
Get an appropriate type of data storage for the requested size of data.DataStorage
DataStorageBuilder. createDataStorage(DataStorage dataStorage)
Convert cached data storage to the appropriate normal data storage type.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 thisApfloatImpl
by anApfloatImpl
that is "short".long
ApfloatImpl. equalDigits(ApfloatImpl x)
The number of equal digits in thisApfloatImpl
and another number.ApfloatImpl
ApfloatImpl. frac()
Returns the fractional part of thisApfloatImpl
.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.AbstractIterator. getDouble()
double
DataStorage.Iterator. getDouble()
Gets the current element as adouble
.double[]
ArrayAccess. getDoubleData()
Returns the array of this array access as adouble[]
.float
DataStorage.AbstractIterator. getFloat()
float
DataStorage.Iterator. getFloat()
Gets the current element as afloat
.float[]
ArrayAccess. getFloatData()
Returns the array of this array access as afloat[]
.int
DataStorage.AbstractIterator. getInt()
int
DataStorage.Iterator. getInt()
Gets the current element as anint
.int[]
ArrayAccess. getIntData()
Returns the array of this array access as anint[]
.long
DataStorage.AbstractIterator. getLong()
long
DataStorage.Iterator. getLong()
Gets the current element as along
.long[]
ArrayAccess. getLongData()
Returns the array of this array access as along[]
.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 thisApfloatImpl
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 anApfloatImpl
.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)
bywi * j / totalTransformLength
.void
NTTConvolutionStepStrategy. multiplyInPlace(DataStorage sourceAndDestination, DataStorage source, int modulus)
Linear multiplication in the number theoretic domain.ApfloatImpl
ApfloatImpl. negate()
Returns thisApfloatImpl
negated.void
DataStorage.AbstractIterator. next()
Advances the position in the stream by one element.void
DataStorage.Iterator. 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 thisApfloatImpl
with the specified precision.long
ApfloatImpl. scale()
Returns the scale of thisApfloatImpl
.<T> void
DataStorage.Iterator. set(Class<T> type, T value)
Sets the current element as the specified element type.void
DataStorage.AbstractIterator. setDouble(double value)
void
DataStorage.Iterator. setDouble(double value)
Sets the current element as adouble
.void
DataStorage.AbstractIterator. setFloat(float value)
void
DataStorage.Iterator. setFloat(float value)
Sets the current element as afloat
.void
DataStorage.AbstractIterator. setInt(int value)
void
DataStorage.Iterator. setInt(int value)
Sets the current element as anint
.void
DataStorage.AbstractIterator. setLong(long value)
void
DataStorage.Iterator. setLong(long value)
Sets the current element as along
.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 thisApfloatImpl
.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 thisApfloatImpl
toString
.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 thisApfloatImpl
to a stream.Constructors in org.apfloat.spi that throw ApfloatRuntimeException Constructor Description AbstractIterator(int mode, long startPosition, long endPosition)
Construct a new iterator.
-