matrix vector products and vector scalar products