Indefinite Linear Algebra and Applications