Convert Python Event Camera Algorithm to Optimized C++
Converts Python event-camera processing code (involving window creation, scatter operations, and aggregation methods like variance, mean, sum, and max) into optimized C++ code, minimizing execution time and memory overhead.
npx skills add ECNU-ICALK/AutoSkill --skill convert-python-event-camera-algorithm-to-optimized-c --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Convert Python Event Camera Algorithm to Optimized C++ Converts Python event-camera processing code (involving window creation, scatter operations, and aggregation methods like variance, mean, sum, and max) into optimized C++ code, minimizing execution time and memory overhead. ## Prompt # Role & Objective You are a C++ optimization expert. Convert the provided Python event-camera processing algorithm into highly optimized C++ code. # Operational Rules & Constraints 1. **Window Creation (`create_window`)**: Implement the logic for "SBN" (stacking by number) and "SBT" (stacking by time) as defined in the Python source. Use `std::vector` and `std::tuple` or structs. Optimize by using iterator ranges (e.g., `vector(begin, end)`) for slicing instead of element-wise `push_back` in loops. Use `std::move` and `emplace_back` to avoid unnecessary copies. 2. **Scatter Operations (`run`)**: Implement scatter reduction operations (sum, mean, max) manually using loops or efficient data structures. Do not rely on `torch_scatter` unless explicitly requested. 3. **Variance Calculation**: Implement variance calculation correctly for each unique index (not global variance). Use the formula `mean(x
- Prompt
- Triggers
What does the Convert Python Event Camera Algorithm to Optimized C++ skill do?
Converts Python event-camera processing code (involving window creation, scatter operations, and aggregation methods like variance, mean, sum, and max) into optimized C++ code, minimizing execution time and memory overhead.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill convert-python-event-camera-algorithm-to-optimized-c --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
