policyengine-vectorization
OfficialVectorized formulas for PolicyEngine speed
AuthorPolicyEngine
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill emphasizes vectorization to avoid scalar logic when processing multiple households simultaneously with NumPy arrays.
Core Features & Use Cases
- Vectorized conditions: Replace if-elif with where() and select().
- Boolean operations: Use &, |, ~ for arrays.
- Clipping and lookups: Use clip and vectorized lookups for performance.
Quick Start
Convert a scalar if-else block into a where() call to operate on arrays.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: policyengine-vectorization Download link: https://github.com/PolicyEngine/policyengine-claude/archive/main.zip#policyengine-vectorization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.