Menu

Where is the logical operations in IT++

Yang Yang
2007-03-25
2012-09-15
  • Yang Yang

    Yang Yang - 2007-03-25

    It seems there are no logical operation on matrix or vec.

     
    • Kumar Appaiah

      Kumar Appaiah - 2007-03-28

      The following does AND and OR, while NOT etc. would be just subtracting from a bvec of ones.

      bvec b = "1 0 1 0";
      cout << b + b << endl;
      cout << elem_mult(b, b) << endl;
      

      HTH.

      Kumar

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.