SYRK[ul,ts,α,a,β,b]
computes the symmetric rank-k update α opts[a].Transpose[opts[a]]+β b and resets the appropriate part of b to the result.
SYRK
SYRK[ul,ts,α,a,β,b]
computes the symmetric rank-k update α opts[a].Transpose[opts[a]]+β b and resets the appropriate part of b to the result.
更多信息和选项
- To use SYRK, 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 ts input string transposition string α input expression scalar mutliple a input expression rectangular matrix β input expression scalar multiple b input/output symbol square 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 b "L" update the lower triangular part of b - The transposition strings describe the operators opts and may be specified as:
-
"N" no transposition "T" transpose "C" conjugate transpose - Dimensions of the matrix arguments must be such that the dot product and addition are well defined.
范例
打开所有单元 关闭所有单元基本范例 (1)
Scope (4)
b = {{1., 0., 0.}, {0., 1., 0.}, {0., 0., 1.}};
a = {{-2.1, 0., 3.2}, {4.3, 0.2, -0.3}, {4.1, 2.6, 0.}};
SYRK["U", "T", 1., a, 2., b];
bb = {{2. + I, 1.}, {1., 3. I}};
a = {{2.1 + 0.5I, 3.2 + I}, {4.1I, 3.8}};
SYRK["L", "C", 1.0, a, -1., b];
bb = {{2`20, 1}, {1, 3}};
a = {{1, 2}, {3, 4}};
SYRK["U", "N", 1 / 2, a, 2, b];
bClear[α, β];
b = {{1, 0}, {0, 1}};
a = {{a11}, {a22}};
SYRK["U", "N", α, a, β, b];
bProperties & Relations (1)
SYRK["U","N",α,a,β,b] is equivalent to b=α a.Transpose[a]+β b applied to the upper triangular part of b:
b = RandomReal[1, {5, 5}];
b = b1 = (b + Transpose[b]) / 2;
a = RandomReal[1, {5, 3}];
α = RandomReal[];
β = RandomReal[];
SYRK["U", "N", α, a, β, b];
UpperTriangularize[b] == UpperTriangularize[α a.Transpose[a] + β b1]The strictly lower triangular part of b is unchanged:
LowerTriangularize[b, -1] == LowerTriangularize[b1, -1]文本
Wolfram Research (2017),SYRK,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYRK.html.
CMS
Wolfram 语言. 2017. "SYRK." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYRK.html.
APA
Wolfram 语言. (2017). SYRK. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYRK.html 年
BibTeX
@misc{reference.wolfram_2026_syrk, author="Wolfram Research", title="{SYRK}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYRK.html}", note=[Accessed: 11-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_syrk, organization={Wolfram Research}, title={SYRK}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYRK.html}, note=[Accessed: 11-August-2026]}