LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

SWAP

SWAP[x,y]

swaps contents of the vectors x and y.

Details

  • To use SWAP, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following arguments must be given:
  • xinput/output symbolvector; the symbol value is modified in place
    yinput/output symbolvector; 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.

Examples

open all close all

Basic Examples  (1)

Load the BLAS package:

In[1]:=
Click for copyable input

Swap two vectors :

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

Scope  (4)

Generalizations & Extensions  (2)

Properties & Relations  (1)

Possible Issues  (3)