LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

GER

GER[α,x,y,a]

computes the rank-one update a+αOuter[Times,x,y] and resets a to the result.

Details

  • To use GER, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following arguments must be given:
  • αinput expressionscalar mutliple
    xinput expressionvector
    yinput expressionvector
    a
  • input/output symbol
  • matrix; the symbol value is modified in place
  • Dimensions of the matrix and vector arguments must be such that the dot product and addition are well defined.

Examples

open allclose all

Basic Examples  (1)

Load the BLAS package:

Apply a rank-one update to a matrix:

Scope  (4)

Real matrix and vectors:

Complex matrix and vectors:

Arbitrary-precision matrix and vectors:

Integer-symbolic matrix and vectors:

Properties & Relations  (1)

GER[α,x,y,a] is equivalent to a=a+αOuter[Times,x,y]:

This can also be expressed as a=a+αTranspose[{x}].{y}:

Possible Issues  (2)

The last argument must be a symbol:

The last argument must be initialized to a matrix: