AXPY[α,x,y]
computes the vector y+αx and resets y to the result.
AXPY
AXPY[α,x,y]
computes the vector y+αx and resets y to the result.
更多信息和选项
- To use AXPY, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
- The following arguments must be given:
-
α input expression scalar multiple x input expression vector y input/output symbol vector; the symbol value is modified in place - Dimensions of the vector arguments must be such that the addition is well defined.
范例
打开所有单元 关闭所有单元基本范例 (1)
Scope (4)
y = {3.2, -1.6, 2.9};
AXPY[2.2, {-1.5, -2.4, 4.1}, y];
yz = {1.2 + 0.4 I, 2.1 - 1.1 I};
AXPY[2.5, {-I, 2.3}, z];
zy = {-1`20, 2, 1};
AXPY[2`20, {1, 2, 3}, y];
ys = {a, b, c};
AXPY[β, {d, e, f}, s];
sProperties & Relations (1)
文本
Wolfram Research (2017),AXPY,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html.
CMS
Wolfram 语言. 2017. "AXPY." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html.
APA
Wolfram 语言. (2017). AXPY. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html 年
BibTeX
@misc{reference.wolfram_2026_axpy, author="Wolfram Research", title="{AXPY}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html}", note=[Accessed: 08-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_axpy, organization={Wolfram Research}, title={AXPY}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html}, note=[Accessed: 08-September-2026]}