CUDALink`
CUDALink`
CUDAFoldList
CUDAFoldList[f,x,{a,b,…}]
{x,f[x,a],f[f[x,a],b],…}を返す.
例題
すべて開くすべて閉じる例 (3)
Plus演算子を含み,初期値が0である入力リストをたたむ:
CUDAFoldListは入力CUDAMemoryの入力にも使える:
前述のものと同じようにCUDAMemoryをたたむ:
返されたメモリはCUDAMemoryGetを使って取り出せる:
考えられる問題 (1)
CUDAFoldListはFoldListの最後の要素を含まない:
Wolfram Research (2010), CUDAFoldList, Wolfram言語関数, https://reference.wolfram.com/language/CUDALink/ref/CUDAFoldList.html.
テキスト
Wolfram Research (2010), CUDAFoldList, Wolfram言語関数, https://reference.wolfram.com/language/CUDALink/ref/CUDAFoldList.html.
CMS
Wolfram Language. 2010. "CUDAFoldList." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAFoldList.html.
APA
Wolfram Language. (2010). CUDAFoldList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/CUDAFoldList.html