Matrices in control theory: with applications to linear programming,