CUDALink`
CUDALink`

CUDAFold

CUDAFold[f,x,list]

gives the last element of CUDAFoldList[f,x,list].

更多信息和选项

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDAFold works only on vectors.
  • CUDAFold does not work on fixed vector structure types like "Float[2]", "Integer32[2]", .
  • CUDAFold does not work on symbolic input.
  • CUDAFold is equivalent to Fold.
  • The value for f can be either Max, Min, Plus, Minus, or Times.

范例

基本范例  (3)

First, load the CUDALink application:

This folds an input list with the Plus operator and initial value 0:

The above is equivalent to Fold:

CUDAFold operates on input CUDAMemory:

This folds the CUDAMemory as before:

Note that the output type is the same as the inputthat is, if the input is a Real valued list, then the output is a real number.

Compared to Fold, only a few operations are supported by CUDAFold:

Wolfram Research (2010),CUDAFold,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAFold.html.

文本

Wolfram Research (2010),CUDAFold,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAFold.html.

CMS

Wolfram 语言. 2010. "CUDAFold." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAFold.html.

APA

Wolfram 语言. (2010). CUDAFold. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/CUDAFold.html 年

BibTeX

@misc{reference.wolfram_2024_cudafold, author="Wolfram Research", title="{CUDAFold}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDAFold.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cudafold, organization={Wolfram Research}, title={CUDAFold}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAFold.html}, note=[Accessed: 23-November-2024 ]}