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

How to check that sparse double complex matrix is real only

Tags: None
(comma "," separated)
nelsons
Registered Member
Posts
23
Karma
0
How to check that a sparse double complex is real only ?

Code: Select all
sp = sparse(complex(ones(3,3),0))
isreal(sp(1:9))


Code: Select all
Eigen::SparseMatrix<doublecomplex, 0, signedIndexType>  spCplxMat;
Eigen::SparseMatrix<double, 0, signedIndexType> spImg = spCplxMat.imag();
// ???


Bookmarks



Who is online

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