An extension of Cartan's classsification of symmetric spaces to infinite