Class MathUtils

java.lang.Object
org.elasticsearch.simdvec.MathUtils

public class MathUtils extends Object
  • Field Details

  • 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.