HERK[ul,ts,α,a,β,b]
computes the Hermitian rank-k update α opts[a].ConjugateTranspose[opts[a]]+β b and resets the appropriate part of b to the result.
HERK
HERK[ul,ts,α,a,β,b]
computes the Hermitian rank-k update α opts[a].ConjugateTranspose[opts[a]]+β b and resets the appropriate part of b to the result.
更多信息和选项
- To use HERK, 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 - The main diagonal elements of b are assumed to be real-valued.
- 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.}};
HERK["U", "T", 1., a, 2., b];
bb = {{2., 1. - I}, {1. + I, 3.}};
a = {{2.1 + 0.5I, 3.2 + I}, {4.1I, 3.8}};
HERK["L", "C", 1., a, -1., b];
bb = {{2`20, 1 + I}, {1 - I, 3}};
a = {{I, 2 - I}, {3 + 2I, 4}};
HERK["U", "N", 1, a, 2, b];
bClear[α, β]
b = {{1, 0}, {0, 1}};
a = {{a11}, {a22}};
HERK["U", "N", α, a, β, b];
bProperties & Relations (1)
HERK["U","N",α,a,β,b] is equivalent to b=α a.ConjugateTranspose[a]+β b applied to the upper triangular part of b:
b = RandomComplex[1 + I, {5, 5}];
b = b1 = (b + ConjugateTranspose[b]) / 2;
a = RandomComplex[1 + I, {5, 3}];
α = RandomReal[];
β = RandomReal[];
HERK["U", "N", α, a, β, b];
UpperTriangularize[b] == UpperTriangularize[α a.ConjugateTranspose[a] + β b1]The strictly lower triangular part of b is unchanged:
LowerTriangularize[b, -1] == LowerTriangularize[b1, -1]Possible Issues (2)
文本
Wolfram Research (2017),HERK,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/HERK.html.
CMS
Wolfram 语言. 2017. "HERK." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/HERK.html.
APA
Wolfram 语言. (2017). HERK. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/HERK.html 年
BibTeX
@misc{reference.wolfram_2026_herk, author="Wolfram Research", title="{HERK}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/HERK.html}", note=[Accessed: 19-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_herk, organization={Wolfram Research}, title={HERK}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/HERK.html}, note=[Accessed: 19-August-2026]}