9.80. DOT_PRODUCT
9.80 DOT_PRODUCT — Dot product function
- Description:
-
DOT_PRODUCT(VECTOR_A, VECTOR_B)
computes the dot product multiplication of two vectors VECTOR_A and VECTOR_B. The two vectors may be either numeric or logical and must be arrays of rank one and of equal size. If the vectors areINTEGER
orREAL
, the result isSUM(VECTOR_A*VECTOR_B)
. If the vectors areCOMPLEX
, the result isSUM(CONJG(VECTOR_A)*VECTOR_B)
. If the vectors areLOGICAL
, the result isANY(VECTOR_A .AND. VECTOR_B)
. - Standard:
- Fortran 95 and later
- Class:
- Transformational function
- Syntax:
-
RESULT = DOT_PRODUCT(VECTOR_A, VECTOR_B)
- Arguments:
-
VECTOR_A The type shall