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

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

[Octave-bug-tracker] [bug #31823] floor/ceil caching causing incorrect b


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #31823] floor/ceil caching causing incorrect behavior when concatenating
Date: Thu, 09 Dec 2010 05:57:51 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like Firefox/3.5.15)

Update of bug #31823 (project octave):

                  Status:               Need Info => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #4:

I suspect your problems is the spaces before the +floor and +ceil in the
expression


-Wx = [  n*(floor(Gx)-1)+floor(Gy) , ...
            n*(ceil(Gx)-1) +floor(Gy) , ...
            n*(floor(Gx)-1)+ceil(Gy)  , ...
            n*(ceil(Gx)-1) +ceil(Gy)  ];


Octave parses these as separate elements, not a binary addition.  See the
explanation here:

http://www.gnu.org/software/octave/doc/interpreter/Matrices.html#Matrices

If this is not the problem, then reopen the bug report and tell us the values
of m and n in the call to your function so that we can reproduce the error..

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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