LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

DOT

DOT[x,y]

computes the dot product of two vectors x and y.

Details

  • To use DOT, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following arguments must be given:
  • xinput expressionvector
    yinput expressionvector
  • The vector arguments must be of the same length.

Examples

open allclose all

Basic Examples  (1)

Load the BLAS package:

Compute the dot product of two vectors:

Scope  (4)

Real vectors:

Complex vectors:

Arbitrary-precision vectors:

Symbolic vectors:

Properties & Relations  (1)

For vectors x and y, DOT[x,y] is equivalent to x.y:

Possible Issues  (1)

Arguments must be of the same length: