Modeling for bipolar resistive memory switching in transition-metal oxides | Synapse