CUresult cuCtxSetCurrent ( CUcontext ctx )or
CUresult cuCtxPushCurrent ( CUcontext ctx )
unfoldfunction to the language? I am thinking something like
unfold 'a 'b (n:i32) (f: a -> (b, a)) (seed: a) : (b, a). I know that this is easy to implement as a loop, but like in the case of
permutethe array must be initialized with some value. In this case however, no potentially nondeterministic behaviour would be added by not doing do.