Per the last line of my comment above, these should be `similar(X, 0, 0)`