A Self-Learning Analog Neural Processor