LinearAlgebra`BLAS`
LinearAlgebra`BLAS`
SWAP
SWAP[x,y]
swaps contents of the vectors x and y.
更多信息和选项
- To use SWAP, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
- The following arguments must be given:
-
x input/output symbol vector; the symbol value is modified in place y input/output symbol vector; the symbol value is modified in place - SWAP[x,y] is equivalent to {x,y}={y,x}.
- The vector arguments must be of the same length.
范例
打开所有单元关闭所有单元Generalizations & Extensions (2)
Wolfram Research (2017),SWAP,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SWAP.html.
文本
Wolfram Research (2017),SWAP,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SWAP.html.
CMS
Wolfram 语言. 2017. "SWAP." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SWAP.html.
APA
Wolfram 语言. (2017). SWAP. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SWAP.html 年