Demonstration of weighted sum using electrical manipulation and detection of magnetic skyrmions