LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

AXPY

AXPY[α,x,y]

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

Details

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

In[1]:=
Click for copyable input

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

In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Properties & Relations  (1)

Possible Issues  (2)