A magnetic synapse: multilevel spin-torque memristor with perpendicular anisotropy | Synapse