A neurosynaptic array comprising a plurality of spiking neurons, and a plurality of synaptic elements interconnecting the spiking neurons to form a spiking neural network, wherein the synaptic elements and spiking neurons are partly or fully implemented in hardware; wherein each synaptic element is arranged to receive a synaptic input signal from at least one of a multiple of inputs and is adapted to apply a weight to the synaptic input signal to generate a synaptic output signal, the synaptic elements being configurable to adjust the weight applied by each synaptic element; wherein each of the spiking neurons is arranged to receive one or more of the synaptic output signals from one or more of the synaptic elements, and is adapted to generate a spatio-temporal spike train output signal in response to the received one or more synaptic output signals; and wherein the neurosynaptic array comprises weight blocks and output blocks , each weight block comprising one or more of the synaptic elements, and each output block comprising one or more of the neurons and a neuron switching circuit ; wherein each weight block is comprised in a column of weight blocks of the neurosynaptic array; wherein each output block is electrically connectable to a subset of weight blocks , the subset of weight blocks formed by one or more columns of weight blocks, via the neuron switching circuit by connecting an output of the one or more columns of weights blocks to one or more sets of neurons of the output block; and wherein the neuron switching circuit is configured to selectively electrically connect at least one synaptic element comprised within the subset of weight blocks to at least one neuron comprised within the respective output block , to obtain a partitioning of the neurosynaptic array into sets of neurons electrically connected to selected synaptic elements. wherein each synaptic element is arranged to receive a synaptic input signal from at least one of a multiple of inputs and is adapted to apply a weight to the synaptic input signal to generate a synaptic output signal, the synaptic elements being configurable to adjust the weight applied by each synaptic element; wherein each of the spiking neurons is arranged to receive one or more of the synaptic output signals from one or more of the synaptic elements, and is adapted to generate a spatio-temporal spike train output signal in response to the received one or more synaptic output signals; and wherein the neurosynaptic array comprises weight blocks and output blocks , each weight block comprising one or more of the synaptic elements, and each output block comprising one or more of the neurons and a neuron switching circuit ; wherein each weight block is comprised in a column of weight blocks of the neurosynaptic array; wherein each output block is electrically connectable to a subset of weight blocks , the subset of weight blocks formed by one or more columns of weight blocks, via the neuron switching circuit by connecting an output of the one or more columns of weights blocks to one or more sets of neurons of the output block; and wherein the neuron switching circuit is configured to selectively electrically connect at least one synaptic element comprised within the subset of weight blocks to at least one neuron comprised within the respective output block , to obtain a partitioning of the neurosynaptic array into sets of neurons electrically connected to selected synaptic elements. <EOS>