LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

ASUM

ASUM[x]

computes the sum of the absolute values of elements of the vector x.

Details and OptionsDetails
  • To use ASUM, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following argument must be given:
  • xinput expressionvector
  • For complex vectors x, ASUM computes the total of the sum of the absolute values of the real and imaginary parts taken separately.
  • Examples

    open allclose all

    Basic Examples  (1)

    Load the BLAS package:

    In[1]:=
    Click for copyable input

    Compute the sum of absolute values of elements of an integer vector:

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

    Scope  (4)

    Properties & Relations  (2)