Matrices and indefinite scalar products