truth_matrix
truth_matrix()
Binary element-presence matrix. Entry [i][j] is 1 if element i is present at least once in species j, otherwise 0.
Row order matches the sorted element list; column order matches the order of species passed to __init__.
Returns
- list[list[int]]
- Shape
(n_elements, n_species).
Example
For elements ['C','H','O'] and species ['CO','H2O','CH4']: