This is broken: a `Mat` doesn't have a `cdim` property.