[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29630] reshape of logical scalar return doubl
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #29630] reshape of logical scalar return double value |
Date: |
Wed, 21 Apr 2010 16:07:30 +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 |
URL:
<http://savannah.gnu.org/bugs/?29630>
Summary: reshape of logical scalar return double value
Project: GNU Octave
Submitted by: None
Submitted on: Wed 21 Apr 2010 04:07:29 PM UTC
Category: Interpreter
Severity: 3 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Alois Schlögl
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Reshaping a logical scalar returns a double value.
This causes strange effects when A is in general a logical matrix, but can
degrade to a matrix of size 1x1.
The issue can reproduced by
A=logical(1);
class(reshape(A,[1,numel(A)]))
ans = double
The answer is incorrect as one would expect
ans = logical
Alois
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29630>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #29630] reshape of logical scalar return double value,
anonymous <=