Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MarkovChain: Sparse matrix support #174

Merged
merged 3 commits into from
Sep 2, 2015

Conversation

oyamad
Copy link
Member

@oyamad oyamad commented Aug 27, 2015

Extend MarkovChain to accept sparse matrix input.
Everything was almost straightforward, except the computation of stationary distributions:

  • In passing the matrix to gth_solve, the sparse matrix input is converted to a dense matrix. If the input is a large matrix, this will require a large amount of memory accordingly. Extending gth_solve to sparse matrices is highly nontrivial, due to fill-in.

Used in MarkovChain to compute the periods of SCCs
Used in MarkovChain._compute_stationary for sparse matrix
jstac added a commit that referenced this pull request Sep 2, 2015
MarkovChain: Sparse matrix support
@jstac jstac merged commit 44f0e2c into QuantEcon:master Sep 2, 2015
@oyamad oyamad deleted the dev_mc_tools_sparse branch September 2, 2015 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants