introduced ConstantMat to keep track of compile-time data