Coming back to answer my own question, it turns out that the linear solution is done by
\(A, B)
for a pair of matrices.