QuantEcon / QuantEcon/QuantEcon.py

Refactor simulation methods in the IVP module

Open
#111 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

refactor
Dominant language
Python
Stars
2.4k
Forks
2.3k
Avg merge
3d 3h
Merged PRs (30d)
3

Description

All,

I would like to re-factor the simulation loops (i.e, _integrate_fixed_trajectory and integrate_variable_trajectory) in the quantecon.ivp module in order to speed them up. However I am not exactly sure how to go about it. Would this be a good use case for Numba? If so are there examples in the code base already that I could use as a guide?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the simulation loops _integrate_fixed_trajectory and integrate_variable_trajectory in the quantecon.ivp module, then look for existing Numba examples in the code base. Determine whether Numba fits these loops and establish how to measure the speed improvement. Done means a justified refactor with faster simulation methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.