waveform_editor.tendencies.util.solve_with_constraints¶
- waveform_editor.tendencies.util.solve_with_constraints(inputs, constraint_matrix)¶
Solve or verify linear system under constraints.
When inputs contains any None values, the missing values are determined. We solve the linear system
constraint_matrix @ outputs == 0, with the additional constraint thatoutput[i] == input[i]for each non-None element in input.When all inputs are not-None, verify that the linear system adheres to:
constraint_matrix @ inputs == 0and raise an InconstentInputsError if that is not the case.
Last update:
2026-05-21