Hi,
It seems ArrayFire change the inplace assignment like
function rhs!(x)
x .= x .+ 1
end
This is not permitted. Removing .=
does not modify x
…
How are we supposed to write inplace functions then?
Hi,
It seems ArrayFire change the inplace assignment like
function rhs!(x)
x .= x .+ 1
end
This is not permitted. Removing .=
does not modify x
…
How are we supposed to write inplace functions then?
You shouldn’t with ArrayFire. It has a special allocator that should handle memory issues.
OK, I will try.
Thank you for the hint
Actually it is faster to remove @afgc
and let the gc
do the work. You can use swap!
if needed