Compute the scalar (dot) product.
where , and are the components of the vectors.
type(vector_R4P) :: pt(1:2)
pt(1) = ex_R4P
pt(2) = ey_R4P
print "(F3.1)", pt(1).dot.pt(2)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(vector_R4P), | intent(in) | :: | lhs | Left hand side. |
||
| type(vector_R4P), | intent(in) | :: | rhs | Right hand side. |
Dot product.