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