meggart / DiskArrays.jl

Other
72 stars 13 forks source link

Check for zero length index in copyto! and same length of the indices #169

Closed felixcremer closed 4 months ago

felixcremer commented 4 months ago

This checks for an index of length zero in the copyto! call so that it does not run into chunking issues further down the code. I am not entirely sure, whether this is the best spot to introduce this, but it seems to work.

The check for the same length of the indices is copied from the behaviour of copyto! on normal arrays. This will fix #168.