LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

SYMV

SYMV[ul,α,a,x,β,y]

computes the symmetric matrix-vector multiplication α a.x+β y and resets y to the result.

更多信息和选项

  • To use SYMV, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following arguments must be given:
  • ulinput stringupper/lower triangular string
    αinput expressionscalar mutliple
    ainput expressionsquare symmetric matrix
    xinput expressionvector
    βinput expressionscalar multiple
    yinput/output symbolvector; the symbol value is modified in place
  • The matrix is assumed symmetric, and only the upper or lower triangular part of a is used.
  • 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
  • Dimensions of the matrix and vector arguments must be such that the dot product and addition are well defined.

范例

打开所有单元关闭所有单元

基本范例  (1)

Load the BLAS package:

Compute a.x+2y and save it in y:

Scope  (4)

Real symmetric matrix and vectors:

Complex symmetric matrix and vectors:

Arbitrary-precision symmetric matrix and vectors:

Symbolic symmetric matrix and vectors:

Properties & Relations  (3)

SYMV["U",α,a,x,β,y] is equivalent to y=α a.x+β y if a is symmetric:

For a symmetric matrix, using the upper or lower triangular part generally produces the same result:

SYMV works with a non-symmetric matrices:

However, the upper and lower parts give different results:

The effective computation of yU is the following:

Possible Issues  (2)

The last argument must be a symbol:

The last argument must be initialized to a vector:

Wolfram Research (2017),SYMV,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYMV.html.

文本

Wolfram Research (2017),SYMV,Wolfram 语言函数,https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYMV.html.

CMS

Wolfram 语言. 2017. "SYMV." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYMV.html.

APA

Wolfram 语言. (2017). SYMV. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYMV.html 年

BibTeX

@misc{reference.wolfram_2024_symv, author="Wolfram Research", title="{SYMV}", year="2017", howpublished="\url{https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYMV.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_symv, organization={Wolfram Research}, title={SYMV}, year={2017}, url={https://reference.wolfram.com/language/LowLevelLinearAlgebra/ref/SYMV.html}, note=[Accessed: 22-November-2024 ]}