TRMM[sd,ul,ts,dg,α,a,b]
computes the multiplication of a triangle matrix a and a full matrix b as α opts[a].b or α b.opts[a] and resets b to the result.
TRMM
TRMM[sd,ul,ts,dg,α,a,b]
computes the multiplication of a triangle matrix a and a full matrix b as α opts[a].b or α b.opts[a] and resets b to the result.
詳細とオプション
- To use TRMM, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
- The following arguments must be given:
-
sd input string left/right side string ul - input string
upper/lower triangular string ts input string transposition string dg input string diagonal ones string α input expression scalar mutliple a input expression rectangular matrix b input/output symbol rectangular matrix; the symbol value is modified in place - The left/right side string sd may be specified as:
-
"L" a is on the left side of the dot product "R" a is on the right side of the dot product - The upper/lower triangular string ul may be specified as:
-
"U" the upper triangular part of a is used "L" the lower triangular part of a is used - The transposition strings describe the operators opts and may be specified as:
-
"N" no transposition "T" transpose "C" conjugate transpose - The diagonal ones string dg may be specified as:
-
"U" the main diagonal of a is assumed to contain only ones "N" the actual values of the main diagonal of a are used - Dimensions of the matrix arguments must be such that the dot product is well defined.
例題
すべて開く すべて閉じる例 (1)
Needs["LinearAlgebra`BLAS`"]Compute UpperTriangularize[a].b and save it in b:
b = {{1, 1}, {-2, 1}};
a = {{1, 3}, {2, 4}};
TRMM["L", "U", "N", "N", 1, a, b];
bScope (4)
b = {{2.3, 1.2, 0.1}, {3.9, 0.3, 2.1}, {0.2, 0.1, -2.5}};
a = {{2.1, 0, 1.4}, {3.5, 2.4, 0.4}, {0, 2.7, 1.3}};
TRMM["L", "U", "N", "N", 2., a, b];
bb = {{2.3 + 3.I, 1.2 I}, {-3. + 2.I, 0.3I}};
a = {{2.1, 1.4 I}, {3.5 I, 0.4 + I}};
TRMM["R", "U", "N", "N", -1. + I, a, b];
bb = {{1`20, 1}, {-2, 1}};
a = {{1, 3}, {2, 4}};
TRMM["L", "U", "N", "N", 1, a, b];
bb = {{b11, b12}, {b21, b22}};
a = {{a11, a12}, {a21, a22}};
TRMM["R", "L", "N", "U", α, a, b];
bProperties & Relations (4)
TRMM["L","U","N","N",α,a,b] is equivalent to b=α UpperTriangularize[a].b:
b = b1 = RandomReal[1, {5, 5}];
a = RandomReal[1, {5, 5}];
TRMM["L", "U", "N", "N", 1, a, b];
b == UpperTriangularize[a].b1TRMM["L","L","T","N",α,a,b] is equivalent to b=αTranspose[LowerTriangularize[a]].b:
b = bU = bL = RandomReal[1, {5, 5}];
a = RandomReal[1, {5, 5}];
TRMM["L", "L", "T", "N", 1, a, bL];
bL == Transpose[LowerTriangularize[a]].bNote this is not TRMM["L","U","T","N",α,a,L] as the lower triangular part is used for the transpose:
TRMM["L", "U", "T", "N", 1, a, bL];
bL == bUIf dg="U", the diagonal values of a are assumed to be ones:
b = {{1, 2}, {1, 2}};
a = {{3, 3}, {2, 4}};
TRMM["L", "U", "N", "U", 1, a, b];
bThe diagonal in a has been effectively replaced by ones:
{{1, 3}, {0, 1}}.{{1, 2}, {1, 2}}If a is a rectangular matrix then only the leading upper or lower triangular part of a is used:
b = {{1.5, 1}, {2, 2.5}};
a = {{3, 3, 2}, {2, 4, 2}};
TRMM["R", "L", "N", "N", 1, a, b];
bThe matrix a is effectively truncated to its upper left corner:
{{1.5, 1}, {2, 2.5}}.{{3, 0}, {2, 4}}関連するガイド
テキスト
Wolfram Research (2017), TRMM, Wolfram言語関数, https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMM.html.
CMS
Wolfram Language. 2017. "TRMM." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMM.html.
APA
Wolfram Language. (2017). TRMM. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMM.html
BibTeX
@misc{reference.wolfram_2026_trmm, author="Wolfram Research", title="{TRMM}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMM.html}", note=[Accessed: 07-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_trmm, organization={Wolfram Research}, title={TRMM}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMM.html}, note=[Accessed: 07-August-2026]}