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

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

[Octave-bug-tracker] [bug #34605] isequal fails on diagonal matrix


From: anonymous
Subject: [Octave-bug-tracker] [bug #34605] isequal fails on diagonal matrix
Date: Thu, 20 Oct 2011 16:43:51 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1

URL:
  <http://savannah.gnu.org/bugs/?34605>

                 Summary: isequal fails on diagonal matrix
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 20 Oct 2011 16:43:50 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Steve Duncan
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Is this intended behaviour?  How do I compare a matrix to the identity
matrix?

Thanks,

Steve Duncan




octave:71> A=rand(10)
A =

   0.8541142   0.2760660   0.0053036   0.7026597   0.9588326   0.8909368  
0.1658030   0.6372311   0.2766075   0.2418921
   0.5601176   0.6047160   0.0225558   0.6967359   0.2662879   0.7684584  
0.8662384   0.3087393   0.7798941   0.6425195
   0.4815580   0.7016791   0.0372791   0.3107462   0.0695602   0.5462609  
0.7493015   0.8596723   0.9004516   0.5153407
   0.0037781   0.6091267   0.4665791   0.2237632   0.7624133   0.9135788  
0.8766977   0.6816254   0.3226005   0.4676575
   0.7986358   0.4716070   0.7835740   0.2671069   0.4370994   0.5149109  
0.3637269   0.1333491   0.3258425   0.1321516
   0.6954933   0.8980488   0.1318831   0.4911706   0.5989588   0.0489876  
0.2138970   0.1150097   0.7687409   0.8190972
   0.2501488   0.5443383   0.2881034   0.7754163   0.7786770   0.7167102  
0.4766052   0.8544575   0.3270072   0.9556337
   0.9740535   0.7791123   0.1972288   0.2053291   0.5194035   0.9675020  
0.4822461   0.1041799   0.9192387   0.5668166
   0.9607174   0.1995555   0.3534172   0.8928978   0.1105083   0.3888662  
0.5562219   0.6937208   0.2513017   0.0104643
   0.7551657   0.8925518   0.4434460   0.9665361   0.7979985   0.7444083  
0.1025406   0.5125457   0.0285691   0.8140902

octave:72> B=eye(10)
B =

Diagonal Matrix

   1   0   0   0   0   0   0   0   0   0
   0   1   0   0   0   0   0   0   0   0
   0   0   1   0   0   0   0   0   0   0
   0   0   0   1   0   0   0   0   0   0
   0   0   0   0   1   0   0   0   0   0
   0   0   0   0   0   1   0   0   0   0
   0   0   0   0   0   0   1   0   0   0
   0   0   0   0   0   0   0   1   0   0
   0   0   0   0   0   0   0   0   1   0
   0   0   0   0   0   0   0   0   0   1

octave:73> isequal(A,A)
ans =  1
octave:74> isequal(A,I)
error: mx_el_eq: nonconformant arguments (op1 is 100x1, op2 is 10x1)
error: called from:
error:   /usr/share/octave/3.2.4/m/general/__isequal__.m at line 168, column
4
error:   /usr/share/octave/3.2.4/m/general/isequal.m at line 28, column 12






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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