scalar products