Apparatus for a neuromorphic network comprising an artificial neural network, the artificial neural network comprising a multi-dimensional array of interconnected circuit elements, each circuit element having similar components to one another selectively representing, under special purpose program control, one of a neuron and a synapse, at least one circuit element of the array selectively representing an input neuron, at least one circuit element of the array selectively representing an output synapse having a weight and, under program control, one to multiple circuit elements of the array selectively representing a neuron or a synapse connected between the input neuron and the output synapse, the apparatus including a state machine for one of incrementing and decrementing a synaptic weight according to the firing of a source neuron.