bugGNU Octave - Bugs: bug #32807, x(:) silently converts single to...

 
 

bug #32807: x(:) silently converts single to double for scalar x

Submitter:  Sergey B Kirpichev <skirpichev>
Submitted:  Wed 16 Mar 2011 12:10:38 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  3 - Low Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 18 Mar 2011 04:09:15 AM UTC, comment #3: 

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/88d1134bb095

This change seems to fix the problem for me, so I'm closing this report.

John W. Eaton <jwe>
Group administrator
Wed 16 Mar 2011 02:25:27 PM UTC, comment #2: 

Confirmed and retitled.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Wed 16 Mar 2011 12:23:28 PM UTC, comment #1: 

Wrong title.  Should be:
"x(:) silently converts single to double for scalar x

Sergey B Kirpichev <skirpichev>
Wed 16 Mar 2011 12:10:38 PM UTC, original submission:  


>> x=single(1);class(x)
ans = single
>> y=x(:);class(y)
ans = double


but for vectors it seems to be correct:

>> x=single([1,1]);class(x)
ans = single
>> y=x(:);class(y)
ans = single


Sergey B Kirpichev <skirpichev>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by skirpichev (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-18 jwe StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2011-03-16 jordigh Priority5 - Normal 3 - Low
        StatusNone Confirmed
        Summaryx(:) silently converts double to single for scalar x x(:) silently converts single to double for scalar x

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code