2024-09-04 19:22:16 +08:00
|
|
|
|
import{_ as a,c as r,o as e,a4 as o}from"./chunks/framework.DpC1ZpOZ.js";const v=JSON.parse('{"title":"mbcp.mp_math.mp_math_typing","description":"","frontmatter":{"title":"mbcp.mp_math.mp_math_typing","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/mp_math_typing.md","filePath":"zh/api/mp_math/mp_math_typing.md"}'),l={name:"api/mp_math/mp_math_typing.md"},n=o('<h1 id="模块-mbcp-mp-math-mp-math-typing" tabindex="-1"><strong>模块</strong> <code>mbcp.mp_math.mp_math_typing</code> <a class="header-anchor" href="#模块-mbcp-mp-math-mp-math-typing" aria-label="Permalink to "**模块** `mbcp.mp_math.mp_math_typing`""></a></h1><p>本模块用于内部类型提示</p><h3 id="var-realnumber" tabindex="-1">var <code>RealNumber</code> <a class="header-anchor" href="#var-realnumber" aria-label="Permalink to "var `RealNumber`""></a></h3><ul><li><p><strong>说明</strong>: 实数</p></li><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>默认值</strong>: <code>int | float</code></p></li></ul><h3 id="var-number" tabindex="-1">var <code>Number</code> <a class="header-anchor" href="#var-number" aria-label="Permalink to "var `Number`""></a></h3><ul><li><p><strong>说明</strong>: 数</p></li><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>默认值</strong>: <code>RealNumber | complex</code></p></li></ul><h3 id="var-singlevar" tabindex="-1">var <code>SingleVar</code> <a class="header-anchor" href="#var-singlevar" aria-label="Permalink to "var `SingleVar`""></a></h3><ul><li><p><strong>说明</strong>: 单变量</p></li><li><p><strong>默认值</strong>: <code>TypeVar('SingleVar', bound=Number)</code></p></li></ul><h3 id="var-arrayvar" tabindex="-1">var <code>ArrayVar</code> <a class="header-anchor" href="#var-arrayvar" aria-label="Permalink to "var `ArrayVar`""></a></h3><ul><li><p><strong>说明</strong>: 数组变量</p></li><li><p><strong>默认值</strong>: <code>TypeVar('ArrayVar', bound=Iterable[Number])</code></p></li></ul><h3 id="var-var" tabindex="-1">var <code>Var</code> <a class="header-anchor" href="#var-var" aria-label="Permalink to "var `Var`""></a></h3><ul><li><p><strong>说明</strong>: 变量</p></li><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>默认值</strong>: <code>SingleVar | ArrayVar</code></p></li></ul><h3 id="var-onesinglevarfunc" tabindex="-1">var <code>OneSingleVarFunc</code> <a class="header-anchor" href="#var-onesinglevarfunc" aria-label="Permalink to "var `OneSingleVarFunc`""></a></h3><ul><li><p><strong>说明</strong>: 一元单变量函数</p></li><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>默认值</strong>: <code>Callable[[SingleVar], SingleVar]</code></p></li></ul><h3 id="var-onearrayfunc" tabindex="-1">var <code>OneArrayFunc</code> <a class="header-anchor" href="#var-onearrayfunc" aria-label="Permalink to "var `OneArrayFunc`""></a></h3><ul><li><p><strong>说明</strong>: 一元数组函数</p></li><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>默认值</strong>: <code>Callable[[ArrayVar], ArrayVar]</code></p></li></ul><h3 id="var-onevarfunc" tabindex="-1">var <code>OneVarFunc</code> <a class="header-anchor" href="#var-onevarfunc" aria-label="Permalink to "var `OneVarFunc`""></a></h3><ul><li><p><strong>说明</strong>: 一元函数</p></li><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>默认值</strong>: <code>OneSingleVarFunc | OneArrayFunc</code></p></li></ul><h3 id="var-twosinglevarsfunc" tabindex="-1">var <code>TwoSingleVarsFunc</code> <a class="header-anchor" href="#var-twosinglevarsfunc" aria-label="Permalink to "var `TwoSingleVarsFunc`""></a></h3><ul><li><p><strong>说明</strong>: 二元单变量函数</p></li><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>默认值</strong>: <code>Callable[[SingleVar, SingleVar], S
|