1. A neural network comprising a plurality of artificial input neurons, a plurality of artificial output neurons and a plurality of artificial synapses, each input neuron being connected to each output neuron by way of an artificial synapse, wherein each output neuron comprises a first input and a second input, the second input being inverted compared to the first input, and each synapse comprises a first memristive device connected to the first input of an output neuron and further comprises a second memristive device, mounted in opposition to said first memristive device, and connected to the second input of said output neuron, so that said output neuron integrates a difference between currents originating from the first and second devices.