using StaticArrays, PDMats
C = SMatrix{2,3}([0.366247 0.314705 0.0352938
0.851331 0.495017 0.282046])
x = PDMat(SMatrix{2,2}([0.191844 0.183975
0.183975 0.200666]))
y = PDMat(SMatrix{3,3}([0.0487753 0.0529655 0.0757205
0.0529655 0.503523 0.478115
0.0757205 0.478115 0.480115]))
x2 = x - X_A_Xt(y, C)
typeof(x2) # Matrix{Float64}
Before the commit on 10/17, the output was type SMatrix{2,2,Float64} which I think is correct.