src.model_balancing.util
This module containts a few mathematical utility functions for model balancing.
Module Contents
- src.model_balancing.util.B_matrix(Nc: int, col_subs: numpy.ndarray, col_prod: numpy.ndarray) numpy.ndarray[source]
Build the B matrix for the \(\eta^{kin}\) expression.
- row_subsnp.ndarray
A column from the substrate stoichiometric matrix. We assume coefficients represent reactant molecularities so only integer values are allowed.
- row_prodnp.ndarray
A column from the product stoichiometric matrix. We assume coefficients represent reactant molecularities so only integer values are allowed.
- src.model_balancing.util.logistic(x: numpy.ndarray) numpy.ndarray[source]
elementwise calculation of \(\log(1 + e^x)\)