Finding Congruencing Matrix between two given matrices

I have two given nxn matrices A,M and I am trying to find P such that
P*A*P.'=M.
How can I find the solution for P in matlab?

回答 (2 件)

Torsten
Torsten 2022 年 8 月 29 日

0 投票

6 件のコメント

Roi Binia
Roi Binia 2022 年 8 月 29 日
M isn't a permutation of A.
Torsten
Torsten 2022 年 8 月 29 日
編集済み: Torsten 2022 年 8 月 29 日
So P can be arbitrary ? Usually P stands for a permutation matrix, i.e. a permutation of the rows/columns of eye(n). Or is P a unitary matrix ?
Roi Binia
Roi Binia 2022 年 8 月 29 日
P is just in GL_7
Torsten
Torsten 2022 年 8 月 29 日
And you want to decide whether A and M are congruent or you know it ?
Roi Binia
Roi Binia 2022 年 8 月 29 日
編集済み: Roi Binia 2022 年 8 月 29 日
I know it, I am trying to find the congruencing matrix.
Torsten
Torsten 2022 年 8 月 29 日
編集済み: Torsten 2022 年 8 月 29 日
Do you know of standard approaches from the literature ? I don't. Seems it is a hard problem with no ready-to-use solver.

サインインしてコメントする。

Bruno Luong
Bruno Luong 2022 年 8 月 29 日
編集済み: Bruno Luong 2022 年 8 月 30 日

0 投票

Partial solution:
if A and M are real symmetric or complex Hemitian, the P can be computed as
[W,E]=eig(M,'vector');
[V,D]=eig(A,'vector');
P = W*diag(sqrt(E./D))*V';
Note that if A and M real,
  • (A+A') and (M+M') are pure real symmetric,
  • 1i*(A-A') and 1i*(M-M') are pure imaginary Hermitian
  • Any real combination of both are Hermitian

2 件のコメント

Torsten
Torsten 2022 年 8 月 29 日
Note that if A and M real,
  • (A+A') and (M+M') are pure real symmetric,
  • 1i*(A-A') and 1i*(M-M') are pure imaginary Hermitian
  • Any real combination of both are Hermitian
Do you think this helps for the general case A, M in GL(7,IR) or why did you add this ?
Bruno Luong
Bruno Luong 2022 年 8 月 29 日
編集済み: Bruno Luong 2022 年 8 月 29 日
If I know I would post the solution for general case.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeFunction Creation についてさらに検索

製品

リリース

R2020b

質問済み:

2022 年 8 月 29 日

編集済み:

2022 年 8 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by