Spin–Orbit Torque and Dipole Coupling for Nanomagnetic Array Programmability