TRMV
TRMV[ul,ts,dg,a,b]
computes the triangular matrix-vector multiplication opts[a].b and resets b to the result.
Details and Options
- To use TRMV, 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
dg - input string
diagonal ones string a input expression rectangular matrix b input/output symbol vector; the symbol value is modified in place - The upper/lower triangular string ul may be specified as:
-
"U" the upper triangular part of a is to be used "L" the lower triangular part of a is to be used - The transposition string ts describes the operator 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 and vector arguments must be such that the dot product is well defined.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-nluht4
Compute UpperTriangularize[a].b and save it in b:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-qr0g3w

Scope (4)Survey of the scope of standard use cases

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-fbzaue


https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-n2l34m

Arbitrary-precision matrix and vectors:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-v1s878


https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-vep7c3

Properties & Relations (4)Properties of the function, and connections to other functions
TRMV["U","N","N",a,b] is equivalent to b=UpperTriangularize[a].b:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-qdy9hg

TRMV["L","T","N",a,b] is equivalent to b=Transpose[LowerTriangularize[a]].b:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-b1z0fq

Note this is not TRMV["U","N","N",a,b] as the lower triangular part is used for the transpose:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-03m87w

If dg="U", the diagonal values of a are assumed to be ones:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-gf3jxd

The diagonal has been effectively replaced by ones:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-sfyy0p

If a is a rectangular matrix then only the leading upper or lower triangular part of a is used:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-udaosp

The matrix a is effectively truncated to its upper left corner:

https://wolfram.com/xid/0k109sy3smikwv6jb15z81b-vkfp57

Wolfram Research (2017), TRMV, Wolfram Language function, https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html.
Text
Wolfram Research (2017), TRMV, Wolfram Language function, https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html.
Wolfram Research (2017), TRMV, Wolfram Language function, https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html.
CMS
Wolfram Language. 2017. "TRMV." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html.
Wolfram Language. 2017. "TRMV." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html.
APA
Wolfram Language. (2017). TRMV. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html
Wolfram Language. (2017). TRMV. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html
BibTeX
@misc{reference.wolfram_2024_trmv, author="Wolfram Research", title="{TRMV}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html}", note=[Accessed: 02-April-2025
]}
BibLaTeX
@online{reference.wolfram_2024_trmv, organization={Wolfram Research}, title={TRMV}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/TRMV.html}, note=[Accessed: 02-April-2025
]}