Pre-allocating output array for ArrayFire.jl function

I have a use case where it would helpful if I could allocate a cuda array prior to calling, say cholesky(), which would then be filled by the called function. Is there a straightforward way of doing this?

look for *_inplace functions in wrap.jl - for example there’s cholesky_inplace that would do what you want.

Perfect! Thank you!