{'fraction_non_alphanumeric': 0.014563106796116505, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 5.381443298969073, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Conservative perturbations of positive definite Hamiltonian matrices

We consider Hamiltonian matrices obtained by means of symmetric and positive definite matrices and analyse some perturbations that maintain the eigenvalues on the imaginary axis of the complex plane. To obtain this result we prove for such matrices the existence of a diagonal form or, alternatively by means of symplectic transformations, the existence of the simplest canonical form. Applications related to a pair of problems in the context of linear algebra and differential equations are also reported. Copyright © 2004 John Wiley & Sons, Ltd.