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

XOR Operator in Eigen

Tags: None
(comma "," separated)
noelt
Registered Member
Posts
1
Karma
0

XOR Operator in Eigen

Mon Sep 10, 2012 4:21 am
Hi guys, I'm new in Eigen.
I have a problem making an XOR in my matrix. I start my matrix by m(0,0) = 1 and start from here making my XOR in my whole matrix, the problem is that I can't find the XOR Operator to make it. Here is my code :

Code: Select all
m(0,0) = 1;
   for (i = 0; i < 7; i++) {
      for (j = 0; j < 7; j++) {
         m(i + 1,j + 1) = m(i,j) ^ m(i, j + 2);
         cout << m(i,j) << " ";
      }
      cout << endl;
   }


The ^ operator in C++ does work but not in Eigen.
Thnaks for the help.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: XOR Operator in Eigen

Sun Sep 23, 2012 1:22 am
Moved to the Eigen forum.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Dee33
Registered Member
Posts
54
Karma
0
OS

Re: XOR Operator in Eigen

Mon Sep 24, 2012 7:38 am
How do you declare your matrix m ?


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]