2930313233343536373839
if (arg instanceof ExprNumber) { return ((ExprNumber) arg).doubleValue(); } else if (arg instanceof ExprArray) { ExprArray a = (ExprArray) arg; int rows = a.rows(); int cols = a.columns(); double res = 1; for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { res *= product(a.get(i, j));
6162636465666768697071
return; } if (a instanceof ExprArray) { ExprArray arr = (ExprArray) a; int rows = arr.rows(); int cols = arr.columns(); for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { eval(arr.get(i, j), average, values, false); }