解析函数格式，类似于 Max(a,b)

@return unknown_type
348284
static function parse_func($str, $param)
    {
        $str = trim($str);
        $_func = explode('(', $str, 2);

        //不是函数形式的，返回false
        if (empty($_func))
        {
            return false;
        }

        //实际要调用的函数名称
        $func = $_func[0];
        $func_arg = explode(';', substr($_func[1], 0, strlen($_func[1]) - 1));

        //实际要传的参数
        $arg = array();
        foreach ($func_arg as $a)
        {
            if (isset($param[$a]))
            {
                $arg[] = $param[$a];
            }
            else
            {
                $arg[] = null;
            }
        }
        return call_user_func($func, $arg);
    }
86161
public static INDArray max(INDArray first, INDArray second) {
        return max(first, second, true);
    }
147522
public static int whichMax(double[] x) {
        double m = Double.NEGATIVE_INFINITY;
        int which = 0;

        for (int i = 0; i < x.length; i++) {
            if (x[i] > m) {
                m = x[i];
                which = i;
            }
        }

        return which;
    }
492372
def _max(self):
        """"""
        return (
            self.range[1] if (self.range and self.range[1] is not None) else
            (max(map(abs, self._values)) if self._values else None)
        )
541208
protected function getMax()
    {
        $params = array_filter(func_get_args() ?: [], function ($arg) {
            return !is_null($arg) && $arg !== "";
        });

        return count($params) > 0 ? max($params) : null;
    }
605816
public function max()
    {
        if (!$this->isValidNumericSet()) {
            throw new \RuntimeException('max: all values must be numeric');
        }
        if (empty($this->value)) {
            return null;
        }

        return max($this->value);
    }
1037582
public static function maxFromArray($a)
    {
        $max = $a[0];

        for ($i = 1; $i < count($a); $i++) {
            if($max < $a[$i])
                $max = $a[$i];
        }

        return $max;
    }
856432
function max($key = null) {
        if($key !== null) {
            $data = \array_column($this->data, $key);
        } else {
            $data = $this->data;
        }
        
        return \max($data);
    }
148879
protected function max( $a, $b, $handleNull )
    {
        return $this->sort( $a, $b, $handleNull ) > 0 ? $a : $b;
    }
435434
public static Short max(Short a, Short b) {
		return a >= b ? a : b;
	}
409251
@SuppressWarnings("unchecked")
	public static <T extends Comparable<? super T>> T max(T... numberArray) {
		return ArrayUtil.max(numberArray);
	}
758350
public static float max(float[] x) {
        float m = Float.NEGATIVE_INFINITY;

        for (float n : x) {
            if (n > m) {
                m = n;
            }
        }

        return m;
    }
836684
function max(x) {
        var value;
        for (var i = 0; i < x.length; i++) {
            // On the first iteration of this loop, max is
            // undefined and is thus made the maximum element in the array
            if (x[i] > value || value === undefined) value = x[i];
        }
        return value;
    }
1288735
func Max(a, b int) int {
	if a > b {
		return a
	} else if b > a {
		return b
	}
	return a
}
560189
def _max(self):
        """"""
        return (
            self.range[1] if (self.range and self.range[1] is not None) else
            (max(self._values) if self._values else None)
        )
1234768
public function getMaxSort()
    {
        if ($this->_max === null) {
            $this->_max = $this->owner->find()->andWhere($this->getCondition())->count() - 1;
        }
        return $this->_max;
    }
847268
public int getMaxIdx() {
        int max = Integer.MIN_VALUE;
        for (int i=0; i<this.top; i++) {
            if (idx[i] > max) {
                max = idx[i];
            }
        }
        return max;
    }