Scalar product