Skip to content

A package for creating stochastic matrices with a given spectrum

License

Notifications You must be signed in to change notification settings

RobertArbon/invspec

Repository files navigation

invspec

GitHub Actions Build Status codecov

Generates stochastic matrices with given properties

>>> import invspec
>>> import numpy as np
>>> 
>>> eigenvalues = np.array([0.9, 0.8, 0.4, 0.2])
>>> matrix = invspec.stochastic_matrix(eigenvalues)
>>> 
>>> evals, evecs = np.linalg.eig(matrix)
>>> evals
[1, 0.9, 0.8, 0.4, 0.2]

Copyright

Copyright (c) 2021, rob arbon

Acknowledgements

Project based on the Computational Molecular Science Python Cookiecutter version 1.5.

About

A package for creating stochastic matrices with a given spectrum

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published