SYR
更多信息和选项
- To use SYR, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
- The following arguments must be given:
-
ul input string upper/lower triangular string α input expression scalar mutliple x input expression vector a input/output symbol matrix; the symbol value is modified in place - The upper/lower triangular string ul may be specified as:
-
"U" update the upper triangular part of a "L" update the lower triangular part of a - Dimensions of the matrix and vector arguments must be such that the dot product and addition are well defined.
范例
打开所有单元 关闭所有单元基本范例 (1)
Scope (4)
a = {{-2.1, 0., 3.2}, {4.3, 0.2, -0.3}, {4.1, 2.6, 0.}};
SYR["U", 0.5, {-1.2, 0., 2.3}, a];
aa = {{2.1 + 0.5I, 3.2 + I}, {4.1I, 3.8}};
SYR["L", 1.0, {2.3, 3.4I}, a];
aArbitrary-precision matrix and vectors:
a = {{1`20, -2}, {-2, 3}};
SYR["U", 1`20 / 2, {1`20, 2}, a];
aInteger-symbolic matrix and vectors:
a = {{m11, m12}, {m21, m22}};
SYR["U", α, {x1, x2}, a];
aProperties & Relations (1)
SYR["U",α,x,a] is equivalent to a=a+α Outer[Times,x,x] for the upper triangular part of a:
a = a1 = RandomReal[1, {5, 5}];
x = RandomReal[1, {5}];
α = RandomReal[];
SYR["U", α, x, a];
a == UpperTriangularize[α Outer[Times, x, x]] + a1The strictly lower triangular part of a is unchanged:
LowerTriangularize[a, -1] == LowerTriangularize[a1, -1]文本
Wolfram Research (2017),SYR,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYR.html.
CMS
Wolfram 语言. 2017. "SYR." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYR.html.
APA
Wolfram 语言. (2017). SYR. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYR.html 年
BibTeX
@misc{reference.wolfram_2026_syr, author="Wolfram Research", title="{SYR}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYR.html}", note=[Accessed: 19-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_syr, organization={Wolfram Research}, title={SYR}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYR.html}, note=[Accessed: 19-August-2026]}