Unfolding G3 matrix

I just posted code that does this, in the thread you linked: