code: public double getProd() {
          double prod = s.one();
          for (int c = 0; c < this.values.length; c++) {
              prod = s.times(prod, values[c]);
          }
          return prod;
      }
docs: Gets the product of all the entries in this tensor.