LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

SCAL

SCAL[α,x]

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

Details and Options

  • 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 allclose all

Basic Examples  (1)

Load the BLAS package:

Scale a vector by a scalar:

Scope  (4)

A real vector:

A complex vector:

An arbitrary-precision vector:

A symbolic vector:

Properties & Relations  (1)

SCAL[α,x] is equivalent to x=α x:

Possible Issues  (2)

The second argument must be a symbol:

If the second argument is not initialized, an error message is issued:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_scal, organization={Wolfram Research}, title={SCAL}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SCAL.html}, note=[Accessed: 22-December-2024 ]}