Skip to content

Commit

Permalink
import LinAlg
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Dec 28, 2023
1 parent b3fb762 commit 52d5257
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/examples/07-loopless-models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ internal_reaction_ids = last.(internal_reactions)
internal_reaction_idxs = first.(internal_reactions) # order needs to match the internal reaction ids below

# Construct the stoichiometric nullspace of the internal reactions
import LinearAlgebra: nullspace

internal_reaction_stoichiometry_nullspace_columns =
eachcol(nullspace(Array(A.stoichiometry(model)[:, internal_reaction_idxs])))

Expand Down

0 comments on commit 52d5257

Please sign in to comment.