LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

SCAL

SCAL[α,x]

computes the scaled vector α x and resets x to the result.

Details

  • To use SCAL, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following arguments must be given:
  • αinput expressionscalar multiple
    xinput/output symbolvector; the symbol value is modified in place
  • SCAL[α,x] is equivalent to x=α x.

Examples

open all close all

Basic Examples  (1)

Load the BLAS package:

In[1]:=
Click for copyable input

Scale a vector by a scalar:

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

Scope  (4)

Properties & Relations  (1)

Possible Issues  (2)