mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-26 16:25:02 +08:00
2 lines
8.4 KiB
JavaScript
2 lines
8.4 KiB
JavaScript
|
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('<h1 id="mbcp-mp-math-mp-math-typing" tabindex="-1">mbcp.mp_math.mp_math_typing <a class="header-anchor" href="#mbcp-mp-math-mp-math-typing" aria-label="Permalink to "mbcp.mp_math.mp_math_typing""></a></h1><p><strong>说明</strong>: 本模块用于内部类型提示</p><h3 id="var-realnumber-int-float" tabindex="-1">var <code>RealNumber</code> = <code>int | float</code> <a class="header-anchor" href="#var-realnumber-int-float" aria-label="Permalink to "var `RealNumber` = `int | float`""></a></h3><ul><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>说明</strong>: 实数</p></li></ul><h3 id="var-number-realnumber-complex" tabindex="-1">var <code>Number</code> = <code>RealNumber | complex</code> <a class="header-anchor" href="#var-number-realnumber-complex" aria-label="Permalink to "var `Number` = `RealNumber | complex`""></a></h3><ul><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>说明</strong>: 数</p></li></ul><h3 id="var-singlevar-typevar-singlevar-bound-number" tabindex="-1">var <code>SingleVar</code> = <code>TypeVar('SingleVar', bound=Number)</code> <a class="header-anchor" href="#var-singlevar-typevar-singlevar-bound-number" aria-label="Permalink to "var `SingleVar` = `TypeVar('SingleVar', bound=Number)`""></a></h3><ul><li><strong>说明</strong>: 单变量</li></ul><h3 id="var-arrayvar-typevar-arrayvar-bound-iterable-number" tabindex="-1">var <code>ArrayVar</code> = <code>TypeVar('ArrayVar', bound=Iterable[Number])</code> <a class="header-anchor" href="#var-arrayvar-typevar-arrayvar-bound-iterable-number" aria-label="Permalink to "var `ArrayVar` = `TypeVar('ArrayVar', bound=Iterable[Number])`""></a></h3><ul><li><strong>说明</strong>: 数组变量</li></ul><h3 id="var-var-singlevar-arrayvar" tabindex="-1">var <code>Var</code> = <code>SingleVar | ArrayVar</code> <a class="header-anchor" href="#var-var-singlevar-arrayvar" aria-label="Permalink to "var `Var` = `SingleVar | ArrayVar`""></a></h3><ul><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>说明</strong>: 变量</p></li></ul><h3 id="var-onesinglevarfunc-callable-singlevar-singlevar" tabindex="-1">var <code>OneSingleVarFunc</code> = <code>Callable[[SingleVar], SingleVar]</code> <a class="header-anchor" href="#var-onesinglevarfunc-callable-singlevar-singlevar" aria-label="Permalink to "var `OneSingleVarFunc` = `Callable[[SingleVar], SingleVar]`""></a></h3><ul><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>说明</strong>: 一元单变量函数</p></li></ul><h3 id="var-onearrayfunc-callable-arrayvar-arrayvar" tabindex="-1">var <code>OneArrayFunc</code> = <code>Callable[[ArrayVar], ArrayVar]</code> <a class="header-anchor" href="#var-onearrayfunc-callable-arrayvar-arrayvar" aria-label="Permalink to "var `OneArrayFunc` = `Callable[[ArrayVar], ArrayVar]`""></a></h3><ul><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>说明</strong>: 一元数组函数</p></li></ul><h3 id="var-onevarfunc-onesinglevarfunc-onearrayfunc" tabindex="-1">var <code>OneVarFunc</code> = <code>OneSingleVarFunc | OneArrayFunc</code> <a class="header-anchor" href="#var-onevarfunc-onesinglevarfunc-onearrayfunc" aria-label="Permalink to "var `OneVarFunc` = `OneSingleVarFunc | OneArrayFunc`""></a></h3><ul><li><p><strong>类型</strong>: <code>TypeAlias</code></p></li><li><p><strong>说明</strong>: 一元函数</p></li></ul><h3 id="var-twosinglevarsfunc-callable-singlevar-singlevar-singlevar" tabindex="-1">var <code>TwoSingleVarsFunc<
|