什么是 numba?
Python 的即时 (JIT) 编译器,可将 Python 和 NumPy 代码的子集转换为快速机器代码。由 Anaconda, Inc. 开发。对于加速循环、自定义数学函数和复杂的数值算法非常有效。用于@njit、@vectorize、prange、cuda.jit、numba.typed、JIT 编译、并行循环、CUDA 的 GPU 加速、蒙特卡罗模拟、数值算法和高性能 Python 计算。 来源:tondevrel/scientific-agent-skills。
Python 的即时 (JIT) 编译器,可将 Python 和 NumPy 代码的子集转换为快速机器代码。由 Anaconda, Inc. 开发。对于加速循环、自定义数学函数和复杂的数值算法非常有效。用于@njit、@vectorize、prange、cuda.jit、numba.typed、JIT 编译、并行循环、CUDA 的 GPU 加速、蒙特卡罗模拟、数值算法和高性能 Python 计算。
通过命令行快速安装 numba AI 技能到你的开发环境
来源:tondevrel/scientific-agent-skills。
Numba makes Python code go fast. It works by decorating your functions with decorators that tell Numba to compile them. It is particularly effective for code that involves heavy numerical loops and NumPy array manipulations.
Official docs: https://numba.pydata.org/numba-doc/latest/index.html User Guide: https://numba.pydata.org/numba-doc/latest/user/index.html Search patterns: @njit, @vectorize, prange, cuda.jit, numba.typed
This is the "gold standard" for Numba. In this mode, Numba compiles the code without using the Python C-API, resulting in maximum speed. If it can't compile (e.g., because of unsupported Python objects), it throws an error.
Python 的即时 (JIT) 编译器,可将 Python 和 NumPy 代码的子集转换为快速机器代码。由 Anaconda, Inc. 开发。对于加速循环、自定义数学函数和复杂的数值算法非常有效。用于@njit、@vectorize、prange、cuda.jit、numba.typed、JIT 编译、并行循环、CUDA 的 GPU 加速、蒙特卡罗模拟、数值算法和高性能 Python 计算。 来源:tondevrel/scientific-agent-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/tondevrel/scientific-agent-skills --skill numbaPython 的即时 (JIT) 编译器,可将 Python 和 NumPy 代码的子集转换为快速机器代码。由 Anaconda, Inc. 开发。对于加速循环、自定义数学函数和复杂的数值算法非常有效。用于@njit、@vectorize、prange、cuda.jit、numba.typed、JIT 编译、并行循环、CUDA 的 GPU 加速、蒙特卡罗模拟、数值算法和高性能 Python 计算。 来源:tondevrel/scientific-agent-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/tondevrel/scientific-agent-skills --skill numba 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/tondevrel/scientific-agent-skills