Write Computation of Shadowmatrix