docs: public static SparseTensor vector(int dimensionNumber, int dimensionSize, double[] values) {
      long[] keyNums = new long[dimensionSize];
      double[] outcomeValues = new double[dimensionSize];
  
      int numEntries = 0;
      for (int i = 0; i < dimensionSize; i++) {
        if (values[i] != 0.0) {
          keyNums[numEntries] = i;
          outcomeValues[numEntries] = values[i];
          numEntries++;
        }
      }
  
      return resizeIntoTable(new int[] { dimensionNumber }, new int[] { dimensionSize },
          keyNums, outcomeValues, numEntries);
    }