Sorry I hadn't realized X was sparse.

For dense data, you can set copy to False and check that the returned object is the same.