linalg[dotprod] - Vector dot (scalar) product
|
Calling Sequence
|
|
dotprod(u, v)
dotprod(u, v, 'orthogonal')
|
|
Parameters
|
|
u, v
|
-
|
lists of the same length or vectors of the same dimension
|
orthogonal
|
-
|
(optional) assume an orthogonal vector space
|
|
|
|
|
Description
|
|
•
|
If called with only two arguments, dotprod computes the vector dot product using the standard definition for a vector space over the complex field: sum u[i]*conjugate(v[i]), as i ranges over the length of u and v.
|
•
|
If the third argument 'orthogonal' is specified, dotprod will compute the vector dot product using the definition: sum u[i]*v[i], as i ranges over the length of u and v.
|
•
|
If u and v are real vectors, then the two forms of dotprod are equivalent.
|
•
|
The command with(linalg,dotprod) allows the use of the abbreviated form of this command.
|
|
|
Download Help Document
Was this information helpful?