Collected matrix derivative results for forward and reverse mode algorithmic differentiation - Giles, M (2008)