Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@pete If $D$ is the duplication matrix and $L$ is an elimination matrix (which is not unique, see math.stackexchange.com/a/4081768/185047) then we can just take the Moore-Penrose inverse of $D$ as $L$, $L=(DD')^{-1}D'$, in which case it should work as I said.