LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

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 expressionscalar multiple
    xinput expressionvector
    yinput/output symbolvector; the symbol value is modified in place
  • Dimensions of the vector arguments must be such that the addition is well defined.

范例

打开所有单元关闭所有单元

基本范例  (1)

Load the BLAS package:

Compute y=2{1,2,3}+y:

Scope  (4)

Real vectors:

Complex vectors:

Arbitrary-precision vectors:

Symbolic vectors:

Properties & Relations  (1)

AXPY[α,x,y] is equivalent to assigned to :

Possible Issues  (2)

The third argument must be a symbol:

If the third argument is not initialized, an error message is issued:

Wolfram Research (2017),AXPY,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html.

文本

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_2024_axpy, author="Wolfram Research", title="{AXPY}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_axpy, organization={Wolfram Research}, title={AXPY}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html}, note=[Accessed: 21-November-2024 ]}