gammy.formulae.Flatten

Flatten

Flatten(formula, prior=None)gammy.formulae.Formula[source]

Flatten the terms of a given formula

Optionally override prior.

In terms of terms:

[[f1, f2], [g1, g2, g3]] => [[f1, f2, g1, g2, g3]]
Parameters
formulaFormula

Flattened formula with a nested list of terms

priorTuple[np.ndarray]

Prior of the final formula