octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44316] eq () between two permutation matrices


From: Rik
Subject: [Octave-bug-tracker] [bug #44316] eq () between two permutation matrices is not element-wise
Date: Fri, 20 Feb 2015 01:11:34 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Update of bug #44316 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  And it really is just Permutation <-> Permutation matrices.  Even
Diagonal matrices, which are similar, work.


p = eye(3)([1 3 2], :)
p =

Permutation Matrix

   1   0   0
   0   0   1
   0   1   0

d = eye(3)
d =

Diagonal Matrix

   1   0   0
   0   1   0
   0   0   1

p == d
ans =

   1   1   1
   1   0   0
   1   0   0





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44316>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]