LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

AXPY

AXPY[α,x,y]

computes the vector y+αx and resets y to the result.

Details and Options

  • 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.

Examples

open allclose all

Basic Examples  (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 Language function, https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html.

Text

Wolfram Research (2017), AXPY, Wolfram Language function, https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html.

CMS

Wolfram Language. 2017. "AXPY." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html.

APA

Wolfram Language. (2017). AXPY. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html

BibTeX

@misc{reference.wolfram_2023_axpy, author="Wolfram Research", title="{AXPY}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/AXPY.html}", note=[Accessed: 28-March-2024 ]}

BibLaTeX

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