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

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

[Octave-bug-tracker] [bug #48871] type conversion in matrix building


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48871] type conversion in matrix building
Date: Tue, 23 Aug 2016 15:08:37 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Update of bug #48871 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Thank you for your bug report. This is the correct type conversion rules for
Octave (and Matlab). The default data type is double. A double combined in
some way (arithmetic or matrix concatenation) with an integer type results in
an integer type. The leftmost integer type is used when more than one integer
type is combined.

The correct type of the first expression is a uint8, the second is an int8,
and the third is a uint16.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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