docs: private DenseTensor fastInnerProductRightAligned(Tensor other, long maxKeyNum, long keyNumIncrement, 
        int[] newDims, int[] newSizes) {        
      DenseTensorBuilder resultBuilder = new DenseTensorBuilder(newDims, newSizes);
      int otherSize = other.size();
      double[] otherValues = other.getValues();
      // Iterate over the keys of this, then (hopefully sparsely) iterate over the 
      // keys of {@code other},
      double innerProd;
      int otherIndex;
      int finalIndex = (int) (maxKeyNum / keyNumIncrement);
      long myKeyNum;
      for (int i = 0; i < finalIndex; i++) {
        myKeyNum = i * keyNumIncrement;
        innerProd = 0.0;
        for (otherIndex = 0; otherIndex < otherSize; otherIndex++) {
          long otherKeyNum = other.indexToKeyNum(otherIndex);
          double otherValue = otherValues[otherIndex];
          innerProd += values[(int) (myKeyNum + otherKeyNum)] * otherValue;
        }
        resultBuilder.putByKeyNum(i, innerProd);
      }
      return resultBuilder.buildNoCopy();
    }