diff --git a/mbcp/mp_math/equation.py b/mbcp/mp_math/equation.py index 95d6483..61abf3b 100644 --- a/mbcp/mp_math/equation.py +++ b/mbcp/mp_math/equation.py @@ -60,6 +60,14 @@ def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], # 内部函数不注释,以防止生成文档 if isinstance(var, int): def partial_derivative_func(*args: Var) -> Var: + """ + @litedoc-hide + Args: + *args: + + Returns: + + """ args_list_plus = list(args) args_list_plus[var] += epsilon args_list_minus = list(args) @@ -68,6 +76,7 @@ def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], return partial_derivative_func elif isinstance(var, tuple): def high_order_partial_derivative_func(*args: Var) -> Var: + """@litedoc-hide""" result_func = func for v in var: result_func = get_partial_derivative_func(result_func, v, epsilon)