GeomScale / dingo

A python library for metabolic networks sampling and analysis
GNU Lesser General Public License v3.0
41 stars 27 forks source link

Computation of the right nullspace of the stoichiometric matrix #5

Closed TolisChal closed 3 years ago

TolisChal commented 3 years ago

This PR implements two functions that compute the right nullspace of the stoichiometric matrix:
-- nullspace_dense which uses the function scipy.linalg.null_space to compute the nullspace of the stoichiometric matrix in dense format.
-- nullspace_sparse which uses the python interface of the library SuiteSparseQR (https://github.com/yig/PySPQR) to compute the QR decomposition of the transposed stoichiometric matrix and then to derive the right nullspace.