pub fn dilate_dim(d: usize, dilation: usize) -> usize
The size of a dimension of size d after dilation: 1 + dilation * (d - 1), or 0 for an empty dimension.
d
1 + dilation * (d - 1)