Swaps elements between two vectors.

The data types you wire to the x and y inputs determine the polymorphic instance to use.


icon

Inputs/Outputs

  • ci32.png yInc

    yInc determines whether the VI skips elements in y for the calculation. The default is 1, meaning the VI does not skip any elements in y. yInc is an optional input.

    Note If you wire a value other than the default to yInc, the VI skips elements that have indexes that are multiples of the value you wire. If you wire a value that is greater than or equal to the number of elements in y, the VI uses only the first element in y for the calculation. If you wire a value that is less than 0, the VI reverses the order of the elements before it calculates the result.
  • ci32.png xInc

    xInc determines whether the VI skips elements in x for the calculation. The default is 1, meaning the VI does not skip any elements in x. xInc is an optional input.

    Note If you wire a value other than the default to xInc, the VI skips elements that have indexes that are multiples of the value you wire. If you wire a value that is greater than or equal to the number of elements in x, the VI uses only the first element in x for the calculation. If you wire a value that is less than 0, the VI reverses the order of the elements before it calculates the result.
  • c1ddbl.png x

    x is a real vector.

  • c1ddbl.png y

    y is a real vector.

  • i1ddbl.png dswap x

    dswap x returns a real vector in which elements of y replace elements of x.

  • i1ddbl.png dswap y

    dswap y returns a real vector in which elements of x replace elements of y.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • Refer to the BLAS (Basic Linear Algebra Subprograms) website at netlib.org for more information on BLAS functions.