LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

ASUM

ASUM[x]

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

Details and Options

  • 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:

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

Scope  (4)

A real vector:

A complex vector:

An arbitrary-precision vector:

A symbolic vector:

Properties & Relations  (2)

ASUM[x] is equivalent to Apply[Plus,Abs[x]] for non-complex x:

ASUM[x] is equivalent to Apply[Plus,Abs[Re[x]]]+Apply[Plus,Abs[Im[x]]] for complex or symbolic x:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_asum, organization={Wolfram Research}, title={ASUM}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/ASUM.html}, note=[Accessed: 25-November-2024 ]}