What is the purpose of this? `sparse` is true iff `X` is sparse; `Y` is always dense.