Closed alexfikl closed 2 years ago
cl.array.concatenate seems to always create a copy, even if there's just one flat array (which seems to match numpy).
numpy
The flatten in meshmode returned the reshaped array without a copy if it could, so this can do that too, since it's a fairly common case.
flatten
Thx!
cl.array.concatenate seems to always create a copy, even if there's just one flat array (which seems to match
numpy
).The
flatten
in meshmode returned the reshaped array without a copy if it could, so this can do that too, since it's a fairly common case.