Introduce dot square product device function