docs: @Override
      public Object map(Object input) {
          List<Float> row = (List<Float>) input;
          switch (mathOp) {
              case Add:
                  float sum = 0f;
                  for (Float w : row)
                      sum += w;
                  return sum;
              case Subtract:
                  return row.get(0) - row.get(1);
              case Multiply:
                  float product = 1.0f;
                  for (Float w : row)
                      product *= w;
                  return product;
              case Divide:
                  return row.get(0) / row.get(1);
              case Modulus:
                  return row.get(0) % row.get(1);
              case ReverseSubtract:
              case ReverseDivide:
              case ScalarMin:
              case ScalarMax:
              default:
                  throw new RuntimeException("Invalid mathOp: " + mathOp); //Should never happen
          }
      }