A device configured to perform convolutions between arbitrary vectors X ⇀ and T ⇀ comprising: a processor for calculating the formula X ⇀ ⋅ T ⇀ = 1 2 ‖ X ⇀ ′ − 0 ⇀ ‖ 2 + ‖ T ⇀ ′ − 0 ⇀ ‖ 2 − ‖ X ⇀ ′ − T ⇀ ′ ‖ 2 − 2 α X β T ‖ X ⇀ ‖ 1 − 2 α T β X ‖ T ⇀ ‖ 1 − 2 β X β T a first cluster of weakly coupled oscillators (10; 32; 100) configured for determining a first degree of match (22; 34) for a difference between the vector X ⇀ ′ and the vector T ⇀ ′ and a first memory for storing a characterization of said first degree of match to allow the processor to derive ‖ X ⇀ ′ - T ⇀ ′ ‖ 2; a second cluster of weakly coupled oscillators (10; 32; 100) configured for determining a second degree of match (22; 34) for a difference between the vector X ⇀ ′ and a zero vector and a second memory for storing a characterization of said second degree of match to allow the processor to derive ‖ X ⇀ ′ - 0 ⇀ ‖ 2; a third cluster of weakly coupled oscillators (10; 32; 100) configured for determining a third degree of match (22; 34) for a difference between the vector T ⇀ ′ and a zero vector and a third memory for storing a characterization of said third degree of match to allow the processor to derive ‖ T ⇀ ′ - 0 ⇀ ‖ 2; wherein each element of the vector X ⇀ and the vector T ⇀ is scaled linearly by said processor by αx βx and α T β T respectively to range between -1 and +1 to form a scaled vector X ⇀ ′ and to form a scaled vector T ⇀ ′; wherein ‖ X ⇀ ‖ 1 is the L 1 norm of vector X ⇀; and wherein ‖ T ⇀ ‖ 1 is the L 1 norm of vector T ⇀;and wherein: the first cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator; the second cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator; and the third cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator. a processor for calculating the formula X ⇀ ⋅ T ⇀ = 1 2 ‖ X ⇀ ′ − 0 ⇀ ‖ 2 + ‖ T ⇀ ′ − 0 ⇀ ‖ 2 − ‖ X ⇀ ′ − T ⇀ ′ ‖ 2 − 2 α X β T ‖ X ⇀ ‖ 1 − 2 α T β X ‖ T ⇀ ‖ 1 − 2 β X β T a first cluster of weakly coupled oscillators (10; 32; 100) configured for determining a first degree of match (22; 34) for a difference between the vector X ⇀ ′ and the vector T ⇀ ′ and a first memory for storing a characterization of said first degree of match to allow the processor to derive ‖ X ⇀ ′ - T ⇀ ′ ‖ 2; a second cluster of weakly coupled oscillators (10; 32; 100) configured for determining a second degree of match (22; 34) for a difference between the vector X ⇀ ′ and a zero vector and a second memory for storing a characterization of said second degree of match to allow the processor to derive ‖ X ⇀ ′ - 0 ⇀ ‖ 2; a third cluster of weakly coupled oscillators (10; 32; 100) configured for determining a third degree of match (22; 34) for a difference between the vector T ⇀ ′ and a zero vector and a third memory for storing a characterization of said third degree of match to allow the processor to derive ‖ T ⇀ ′ - 0 ⇀ ‖ 2; wherein each element of the vector X ⇀ and the vector T ⇀ is scaled linearly by said processor by αx βx and α T β T respectively to range between -1 and +1 to form a scaled vector X ⇀ ′ and to form a scaled vector T ⇀ ′; wherein ‖ X ⇀ ‖ 1 is the L 1 norm of vector X ⇀; and wherein ‖ T ⇀ ‖ 1 is the L 1 norm of vector T ⇀;and wherein: the first cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator; the second cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator; and the third cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator. the first cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator; the second cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator; and the third cluster of weakly coupled oscillators (10; 32; 100) comprises a resonant body oscillator or a spin torque oscillator.