[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38423] [k:l:m] not compatible for m = -0
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #38423] [k:l:m] not compatible for m = -0 |
Date: |
Mon, 04 Mar 2013 00:57:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 |
Follow-up Comment #9, bug #38423 (project octave):
[Note type in "help typeinfo": "return an cell array".]
OK, I understand now. min and max have to return a type double matrix and
Octave is retaining the underlying dimensions of the operations even though
they are empty. Further examples:
octave:24> (1:1:3)'*[1 1]
ans =
1 1
2 2
3 3
octave:25> (1:-1:3)'*[1 1]
ans = [](0x2)
octave:26> (1:-1:3)*[1 1]
error: operator *: nonconformant arguments (op1 is 1x0, op2 is 1x2)
octave:28> ones(0,0)
ans = [](0x0)
octave:29> []
ans = [](0x0)
octave:30> typeinfo(ones(0,0))
ans = matrix
octave:31> typeinfo([])
ans = null_matrix
octave:32>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38423>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/