[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54622] test importdata fails in dev octave wi
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows |
Date: |
Tue, 11 Sep 2018 14:50:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #58, bug #54622 (project octave):
OK, I see the reasoning behind the "NaN + Infj", I guess. It is being thought
of as
(Inf,0) * (0,j) = Inf*0 + Inf*j + 0*0 - 0*1
= NaN + Infj + 0 - 0
= NaN + Infj
Not sure I completely agree with that, but that's fine. I mean, we could make
the argument that
-1 * Inf = (-1,0) * (Inf,0)
= -1*Inf + -1*0 j + Inf*0 j - 0*0
= -Inf + NaN j
whatever.
However, I then tried some things. The attached change to importdata.m BIST
works. On the other hand, reading "NaN+Infj" doesn't seem to work. I changed
Rik's example file to be:
1.5,NaN+Infj,4
and I see that the NaN+Infj is not recognized
octave:1> dlmread ('tst_nan_infj.txt', ',')
ans =
1.50000 0.00000 4.00000
octave:2> importdata ('tst_nan_infj.txt', ',')
ans =
scalar structure containing the fields:
data =
1.5000 NA 4.0000
textdata =
{
[1,1] = NaN+Infj
}
Do we need to further enhance the if-else block in dlmread.cc?
(file #44984)
_______________________________________________________
Additional Item Attachment:
File name: octave-importdata_bist_infj-djs2018sep11.patch Size:0 KB
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54622>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, (continued)
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/10
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/10
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/10
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Rik, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Rik, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows,
Dan Sebald <=
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Rik, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Rik, 2018/09/11
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/12
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/12