You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix input-derivative column pairing in causal simplification call sites
MTK's linearize with allow_input_derivatives = true returns B with 2nu
columns where column nu + i is the derivative of input i. The pairing passed
to causal_simplification was derived by broadcasting 1:nu against the set of
NONZERO derivative columns, which silently pairs every input to the same
derivative channel when exactly one column is nonzero (and errors for other
partial subsets). This produced wrong linearizations whenever inputs enter
retained algebraic equations, e.g. through the numerical (non-inlined)
linear-SCC reassembly: on a planar two-joint robot the input complementary
sensitivity collapsed to a rank-1 projector instead of I at low frequency.
The pairing is now positional over all inputs; all-zero derivative columns
contribute nothing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W4JdEEqr6ifdSbp6MvbrU8
0 commit comments