A crossbar array of magnetoresistive memory devices for in-memory computing