·numba

Python 的即时 (JIT) 编译器,可将 Python 和 NumPy 代码的子集转换为快速机器代码。由 Anaconda, Inc. 开发。对于加速循环、自定义数学函数和复杂的数值算法非常有效。用于@njit、@vectorize、prange、cuda.jit、numba.typed、JIT 编译、并行循环、CUDA 的 GPU 加速、蒙特卡罗模拟、数值算法和高性能 Python 计算。

11安装·0热度·@tondevrel

安装

$npx skills add https://github.com/tondevrel/scientific-agent-skills --skill numba

如何安装 numba

通过命令行快速安装 numba AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/tondevrel/scientific-agent-skills --skill numba
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:tondevrel/scientific-agent-skills。

SKILL.md

查看原文

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 numba
分类
</>开发工具
认证
收录时间
2026-02-22
更新时间
2026-03-11

Browse more skills from tondevrel/scientific-agent-skills

快速解答

什么是 numba?

Python 的即时 (JIT) 编译器,可将 Python 和 NumPy 代码的子集转换为快速机器代码。由 Anaconda, Inc. 开发。对于加速循环、自定义数学函数和复杂的数值算法非常有效。用于@njit、@vectorize、prange、cuda.jit、numba.typed、JIT 编译、并行循环、CUDA 的 GPU 加速、蒙特卡罗模拟、数值算法和高性能 Python 计算。 来源:tondevrel/scientific-agent-skills。

如何安装 numba?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/tondevrel/scientific-agent-skills --skill numba 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/tondevrel/scientific-agent-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-22