1. A system for pattern matching, the system comprising: one or more processors and a memory, the memory having instructions encoded thereon such that upon execution of the instructions, the one or more processors perform operations of: converting a test array into neural inputs; receiving the neural inputs into a template neural network to generate output neurons; and evaluating the output neurons to identify a location of a template in the test array.