2
C ----------------------------------------------------------------------
4
SUBROUTINE RDOTXX(P1,P2 , SCALAR)
6
C This subroutine computes the scalar product of two REAL vectors.
7
C To get an inner-product of two momenta, call this subroutine.
8
C For the complex vectors, use CDOTxx subroutine.
11
C real P1(0:3) : vector
12
C real P2(0:3) : vector
15
C real SCALAR : scalar product of two vectors
19
DOUBLE PRECISION P1(0:3),P2(0:3)
20
DOUBLE PRECISION SCALAR
22
SCALAR = P1(0)*P2(0)-P1(1)*P2(1)
23
& -P1(2)*P2(2)-P1(3)*P2(3)