Registered Member
|
Hello, Eigen community:
I have some Matlab code as follows: A = [1 2 3;4 0 4;0 1 2]; idex_A = A == 0; A(idex_A) = 1; B = [1 ;2 ;3;4 ;0 ;4;0 ;1 ;2]; idex_B = B == 0; B(index_B) = []; Now, I want to achieve the Matlab code by Eigen Matrix. How can I achieve this efficiently? I am looking forward to your reply! Ning |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient