|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.naokishibata.sleef.FastMath
public class FastMath
FastMath class is a Java implementation of the SLEEF library. Some of the methods can be used as substitutions of the corresponding methods in Math class. They have slightly less accuracy, and some methods are faster compared to those methods in Math class. Please note that the methods in the standard Math class are JNI methods, and the SLEEF library is specialized for SIMD operations.
Nested Class Summary | |
---|---|
static class |
FastMath.double2
This class represents a vector of two double values. |
Constructor Summary | |
---|---|
FastMath()
|
Method Summary | |
---|---|
static double |
acos(double d)
This method calculates the arc cosine of x in radians. |
static float |
acosf(float d)
This method calculates the arc cosine of x in single precision. |
static double |
acosh(double x)
Returns the inverse hyperbolic cosine of x. |
static double |
asin(double d)
This method calculates the arc sine of x in radians. |
static float |
asinf(float d)
This method calculates the arc sine of x in single precision. |
static double |
asinh(double x)
Returns the inverse hyperbolic sine of x. |
static double |
atan(double s)
Returns the arc tangent of an angle. |
static double |
atan2(double y,
double x)
This method calculates the arc tangent of y/x in radians, using the signs of the two arguments to determine the quadrant of the result. |
static float |
atan2f(float y,
float x)
This method calculates the arc tangent of y/x in single precision. |
static float |
atanf(float s)
Returns the arc tangent of an angle in single precision. |
static double |
atanh(double x)
Returns the inverse hyperbolic tangent of x. |
static double |
cbrt(double d)
This function returns the cube root of the argument. |
static float |
cbrtf(float d)
This function returns the cube root of the argument in single precision. |
static double |
cos(double d)
Returns the trigonometric cosine of an angle. |
static float |
cosf(float d)
Returns the trigonometric cosine of an angle in single precision. |
static double |
cosh(double x)
Returns the hyperbolic cosine of x. |
static double |
exp(double d)
Returns the value of e raised to the power of the argument. |
static double |
exp10(double a)
Returns the value of 10 raised to the power of the argument. |
static double |
exp2(double a)
Returns the value of 2 raised to the power of the argument. |
static float |
expf(float d)
Returns the value of e raised to the power of the argument in single precision. |
static double |
expm1(double a)
Returns a value equivalent to exp(a)-1. |
static double |
fabs(double d)
Returns the absolute value of the argument |
static double |
fma(double x,
double y,
double z)
This function performs a fused multiply-accumulate operation. |
static int |
ilogb(double d)
Returns the exponent part of their argument as a signed integer |
static boolean |
isinf(double d)
Checks if the argument is either positive infinity or negative infinity. |
static boolean |
isMinusZero(double x)
Checks if the argument is -0. |
static boolean |
isnan(double d)
Checks if the argument is a NaN or not. |
static boolean |
isPlusZero(double x)
Checks if the argument is +0. |
static double |
ldexp(double x,
int q)
Returns the result of multiplying the floating-point number x by 2 raised to the power q |
static double |
log(double d)
Returns the natural logarithm of the argument. |
static double |
log10(double a)
Returns the base 10 logarithm of the argument. |
static double |
log1p(double a)
Returns a value equivalent to log(1+a). |
static float |
logf(float d)
Returns the natural logarithm of the argument in single precision. |
static double |
max(double x,
double y)
Returns the larger value of the two arguments. |
static double |
pow(double x,
double y)
Returns the value of the first argument raised to the power of the second argument. |
static double |
rint(double x)
Returns the integer value that is closest to the argument. |
static double |
sin(double d)
Returns the trigonometric sine of an angle. |
static FastMath.double2 |
sincos(double d)
Returns the trigonometric sine and cosine of an angle at a time. |
static float |
sinf(float d)
Returns the trigonometric sine of an angle in single precision. |
static double |
sinh(double x)
Returns the hyperbolic sine of x. |
static double |
sqrt(double d)
This function returns the square root of the argument. |
static double |
tan(double d)
Returns the trigonometric tangent of an angle. |
static float |
tanf(float d)
Returns the trigonometric tangent of an angle in single precision. |
static double |
tanh(double x)
Returns the hyperbolic tangent of x. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FastMath()
Method Detail |
---|
public static double fabs(double d)
public static double max(double x, double y)
public static boolean isnan(double d)
public static boolean isinf(double d)
public static double rint(double x)
public static double ldexp(double x, int q)
public static int ilogb(double d)
public static boolean isPlusZero(double x)
public static boolean isMinusZero(double x)
public static double atan2(double y, double x)
public static double asin(double d)
public static double acos(double d)
public static double atan(double s)
public static double sin(double d)
public static double cos(double d)
public static FastMath.double2 sincos(double d)
public static double tan(double d)
public static double log(double d)
public static double exp(double d)
public static double pow(double x, double y)
public static double sinh(double x)
public static double cosh(double x)
public static double tanh(double x)
public static double asinh(double x)
public static double acosh(double x)
public static double atanh(double x)
public static double fma(double x, double y, double z)
public static double sqrt(double d)
public static double cbrt(double d)
public static double exp2(double a)
public static double exp10(double a)
public static double expm1(double a)
public static double log10(double a)
public static double log1p(double a)
public static float cbrtf(float d)
public static float sinf(float d)
public static float cosf(float d)
public static float tanf(float d)
public static float atanf(float s)
public static float atan2f(float y, float x)
public static float asinf(float d)
public static float acosf(float d)
public static float logf(float d)
public static float expf(float d)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |