Demonstration of a matrix calculus using computed tomography