I feel as thought maybe I'm Googling the wrong words, but perhaps this is a more nuanced question than I thought.
Let $C_R(G) = \{ x | x \in R \text{ and } [x,G]=0\} $ be the centralizer of $G$ in $R$. If $R$ is the full ring of $n \times n$ complex matrices, and I am given the elements in of $G$,does there exist an algorithm to efficiently find $C_R(G)$? Does there exist an inefficient method?
Framed more practically, the tasks seems to be the following: I am given a set of $n\times n$ matrices $G$ and want to find all matrices that commute with $G$. I've seen some answers for finding the commuting matrices for a single matrix, but not for a set of matrices.