get_M: Returns the matrix M.

View source: R/crn_reactor.R

get_MR Documentation

Returns the matrix M.

Description

The matrix M is used for the calculations made on react(). This matrix has #lines = #reactions and #columns = #species and it represents the stoichiometry of each species at each reaction.

Usage

get_M(reactions, species)

Value

A list with the named indexes prod (stoichiometry matrix of the products), react (stoichiometry matrix of reactants) and M (the M matrix generate from the difference of theses two matrices).


DanielKneipp/DNAr documentation built on Jan. 7, 2023, 12:42 p.m.