Similarity transformations involving the schwarz and companion matrices