Differentiating through conjugate gradient. (2nd November 2018)