ASUM[x]
computes the sum of the absolute values of elements of the vector x.
ASUM
ASUM[x]
computes the sum of the absolute values of elements of the vector x.
更多信息和选项
- To use ASUM, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
- The following argument must be given:
-
x input expression vector - For complex vectors x, ASUM computes the total of the sum of the absolute values of the real and imaginary parts taken separately.
范例
打开所有单元 关闭所有单元基本范例 (1)
Scope (4)
Properties & Relations (2)
ASUM[x] is equivalent to Apply[Plus,Abs[x]] for non-complex x:
x = RandomReal[{-1, 1}, {5}];
ASUM[x] == Apply[Plus, Abs[x]]ASUM[x] is equivalent to Apply[Plus,Abs[Re[x]]]+Apply[Plus,Abs[Im[x]]] for complex or symbolic x:
x = RandomComplex[{-1 - I, 1 + I}, {5}];
ASUM[x] == Apply[Plus, Abs[Re[x]]] + Apply[Plus, Abs[Im[x]]]文本
Wolfram Research (2017),ASUM,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/ASUM.html.
CMS
Wolfram 语言. 2017. "ASUM." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/ASUM.html.
APA
Wolfram 语言. (2017). ASUM. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/ASUM.html 年
BibTeX
@misc{reference.wolfram_2026_asum, author="Wolfram Research", title="{ASUM}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/ASUM.html}", note=[Accessed: 15-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_asum, organization={Wolfram Research}, title={ASUM}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/ASUM.html}, note=[Accessed: 15-August-2026]}