Let linear solution work with Arrays, Vectors, and Matrices