import{_ as a,c as r,o as e,a2 as l}from"./chunks/framework.C94oF1kp.js";const h=JSON.parse('{"title":"mbcp.mp_math.mp_math_typing","description":"","frontmatter":{"title":"mbcp.mp_math.mp_math_typing","editLink":false},"headers":[],"relativePath":"api/mp_math/mp_math_typing.md","filePath":"zh/api/mp_math/mp_math_typing.md"}'),n={name:"api/mp_math/mp_math_typing.md"},o=l('
说明: 本模块用于内部类型提示
RealNumber
= int | float
类型: TypeAlias
说明: 实数
Number
= RealNumber | complex
类型: TypeAlias
说明: 数
SingleVar
= TypeVar('SingleVar', bound=Number)
ArrayVar
= TypeVar('ArrayVar', bound=Iterable[Number])
Var
= SingleVar | ArrayVar
类型: TypeAlias
说明: 变量
OneSingleVarFunc
= Callable[[SingleVar], SingleVar]
类型: TypeAlias
说明: 一元单变量函数
OneArrayFunc
= Callable[[ArrayVar], ArrayVar]
类型: TypeAlias
说明: 一元数组函数
OneVarFunc
= OneSingleVarFunc | OneArrayFunc
类型: TypeAlias
说明: 一元函数
TwoSingleVarsFunc
= Callable[[SingleVar, SingleVar], SingleVar]
类型: TypeAlias
说明: 二元单变量函数
TwoArraysFunc
= Callable[[ArrayVar, ArrayVar], ArrayVar]
类型: TypeAlias
说明: 二元数组函数
TwoVarsFunc
= TwoSingleVarsFunc | TwoArraysFunc
类型: TypeAlias
说明: 二元函数
ThreeSingleVarsFunc
= Callable[[SingleVar, SingleVar, SingleVar], SingleVar]
类型: TypeAlias
说明: 三元单变量函数
ThreeArraysFunc
= Callable[[ArrayVar, ArrayVar, ArrayVar], ArrayVar]
类型: TypeAlias
说明: 三元数组函数
ThreeVarsFunc
= ThreeSingleVarsFunc | ThreeArraysFunc
类型: TypeAlias
说明: 三元函数
MultiSingleVarsFunc
= Callable[..., SingleVar]
类型: TypeAlias
说明: 多元单变量函数
MultiArraysFunc
= Callable[..., ArrayVar]
类型: TypeAlias
说明: 多元数组函数
MultiVarsFunc
= MultiSingleVarsFunc | MultiArraysFunc
类型: TypeAlias
说明: 多元函数