docs: public static double innerProduct(double[] a, double[] b) {
      double result = 0.0;
      int len = Math.min(a.length, b.length);
      for (int i = 0; i < len; i++) {
        result += a[i] * b[i];
      }
      return result;
    }