java.lang.Object
org.elasticsearch.simdvec.MathUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MANTISSA_BITS
public static final int MANTISSA_BITS- See Also:
-
EXPONENT_BIAS
public static final int EXPONENT_BIAS- See Also:
-
EXPONENT_BIAS_MINUS_ONE
public static final int EXPONENT_BIAS_MINUS_ONE- See Also:
-
EXPONENT_MASK
public static final int EXPONENT_MASK- See Also:
-
MANTISSA_MASK
public static final int MANTISSA_MASK- See Also:
-
-
Constructor Details
-
MathUtils
public MathUtils()
-
-
Method Details
-
sqrt
public static float sqrt(float x) Computes the squared root of x. -
log2NQT
public static float log2NQT(float x) Computes log2(x) using the NQT approximation. -
pow2NQT
public static float pow2NQT(float exponent) Computes pow(2, exponent) using the NQT approximation.
-