Matrix methods for solving antenna problems