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

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

[Octave-bug-tracker] [bug #29906] cumsum gives wrong results if matrix i


From: Rik
Subject: [Octave-bug-tracker] [bug #29906] cumsum gives wrong results if matrix is of type logical
Date: Tue, 18 May 2010 18:36:45 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9

Update of bug #29906 (project octave):

                  Status:                    None => Confirmed              
                 Summary: cumsum gives wrong results if matrix looks like
binary matrix => cumsum gives wrong results if matrix is of type logical

    _______________________________________________________

Follow-up Comment #1:

The problem is with matrices with type logical and is only apparent when the
summation dimension is not equal to 1.  

This was confirmed using a recent hg tip on a Linux system.  3-dimensional
logical matrices summed over the 3rd dimension also were incorrect indicating
that it is really any dimension other than 1 which leads to errors.

A simpler example to replicate the problem is:
a = logical ( [ 0 0 1 ; 0 1 1 ; 1 1 1 ] )
cumsum(a,2)



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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