This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Inverse of complex diagonal matrix

Tags: None
(comma "," separated)
Akkawe
Registered Member
Posts
35
Karma
0
OS

Inverse of complex diagonal matrix

Fri Jan 13, 2012 10:21 pm
I have defined:
Code: Select all
VectorXcd V(5);
   V(0)=alphax; //assign complex (double) number
   V(1)=alphay; //assign complex (double) number
   V(2)=alphaz; //assign complex (double) number
   V(3)=0;
   V(4)=0;
   MatrixXcd M(5,5);
   M=V.asDiagonal();


How could I obtain the inverse of the complex diagonal matrix?
Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
M=V.asDiagonal().inverse();


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]