| Trees | Indices | Help |
|
|---|
|
|
PySCeS stoichiometric analysis class: initialized with a stoichiometric matrix N (input)
Version: 0.1.8
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
__stoichdiagmode__ = 0
|
|||
__TimeFormat =
|
|||
|
Inherited from |
|||
|
|||
Evaluate the stoichiometric matrix and calculate the nullspace using LU decomposition and backsubstitution . Generates the MCA K and Ko arrays and associated row and column vectors Arguments: None |
Evaluate the stoichiometric matrix and calculate the left nullspace using LU factorization and backsubstitution. Generates the MCA L, Lo, Nr and Conservation matrix and associated row and column vectors Arguments: None |
This is a sorting routine that accepts a matrix and row/colum vectors and then sorts them so that: there are no zero rows (by swapping with first non-zero row) The abs(largest) pivots are moved onto the diagonal to maintain numerical stability. Row and column swaps are recorded in the tracking vectors. Arguments: ========= a: the input array row_vector: row tracking vector column_vector: column tracking vector |
This is a sorting routine that accepts a matrix and row/colum vectors and then sorts them so that: the abs(largest) pivots are moved onto the diagonal to maintain numerical stability i.e. the matrix diagonal is in descending max(abs(value)). Row and column swaps are recorded in the tracking vectors. Arguments: ========= a: the input array row_vector: row tracking vector column_vector: column tracking vector |
Performs an LU factorization using LAPACK D/ZGetrf. Returns LU - combined factorization, IP - rowswap information and info - Getrf error control. Arguments: ========= a_in: the matrix to be factorized |
PLU takes the combined LU factorization computed by PLUfactorize and extracts the upper matrix. Returns U. Arguments: ========= plu: LU factorization row: row tracking vector col: column tracking vector t [default=None)]: typecode argument (currently not used) |
Core analysis algorithm; an input is preconditioned using PivotSort_initial and then cycles of PLUfactorize and PivotSort are run until the factorization is completed. During this process the matrix is reordered by column swaps which emulates a full pivoting LU factorization. Returns the pivot matrix P, upper factorization U as well as the row/col tracking vectors. Arguments: ========= a: a stoichiometric matrix |
Given an upper triangular matrix U, this method scales the diagonal (pivot values) to one. Arguments: ========= a_one: an upper triangular matrix U |
Jordan reduction of a scaled upper triangular matrix. The returned array is now in the form [I R] and can be used for nullspace determination. Modified row and column tracking vetors are also returned. Arguments: ========= res_a: unitary pivot upper triangular matrix row_vector: row tracking vector column_vector: column tracking vector |
Using the R factorized form of the stoichiometric matrix we now form the K and Ko matrices. Returns the r_ipart,Komatrix,Krow,Kcolumn,Kmatrix,Korow,info Arguments: ========= R_a: the Gauss-Jordan reduced stoichiometric matrix row_vector: row tracking vector column_vector: column tracking vector |
Takes the Gauss-Jordan factorized N^T and extract the L, Lo, conservation (I -Lo) and reduced stoichiometric matrices. Returns: lmatrix_col_vector, lomatrix, lomatrix_row, lomatrix_co, nrmatrix, Nred_vector_row, Nred_vector_col, info Arguments: ========= Nfull: the original stoichiometric matrix N R_a: gauss-jordan factorized form of N^T row_vector: row tracking vector column_vector: column tracking vector |
Calculates the dimensions of L/L0/K/K) by way of SVD and compares them to the Guass-Jordan results. Please note that for LARGE ill conditioned matrices the SVD can become numerically unstable when used for nullspace determinations Arguments: ========= matrix [default=None]: the stoichiometric matrix default is self.Nmatrix factor [default=1.0e4]: factor used to calculate the 'zero pivot' mask = mach_eps*factor resultback [default=0]: return the SVD results, U, S, vh |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Jul 20 12:17:32 2010 | http://epydoc.sourceforge.net |