Self-adaptive Matrix Equation Solving in Analog Memory Array 1