Open RatsRatsRats opened 6 years ago
Thanks for the report. I agree this is awkward behavior.
So this is actually the result of behavior of the delegating backends in some cases, for example jblas's implementation calls into blas and does the same raw memory copy without access check.
The options here then are:
Realistically I don't think calling to the backend is going to significantly improve performance for this op.
You can set columns (and I'd guess rows, I haven't checked) with an arbitrary Matrix that has fewer than the expected number of elements in the dimension to be set, and the fill data is taken from the rows of the matrix passed in up to the number of cols available: