·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-10

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