[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50626] Indexing with "end" does not work for
From: |
Joel Dahne |
Subject: |
[Octave-bug-tracker] [bug #50626] Indexing with "end" does not work for matrices of intervals |
Date: |
Fri, 24 Mar 2017 10:25:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?50626>
Summary: Indexing with "end" does not work for matrices of
intervals
Project: GNU Octave
Submitted by: urathai
Submitted on: Fri 24 Mar 2017 02:25:14 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: GNU/Linux
_______________________________________________________
Details:
When getting a subset of an interval matrix using `1:end` yields only the
first element, the `end` syntax seems to always evaluate to 1.
For a normal vector we have
>> v = [1, 2, 3, 4, 5];
>> v(1:end)
ans = [1, 2, 3, 4, 5]
For a vector of intervals we instead get
>> v = infsup([1, 2, 3, 4, 5]);
>> v(1:end)
ans = [1]
Here `1:end` should be the same as `1:5` but it evaluates to `1:1`.
>From what I can tell the problems seems to occur before the call to `subsref`.
The input argument to `subsref` are consistent with `end` being evaluated to
1.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50626>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50626] Indexing with "end" does not work for matrices of intervals,
Joel Dahne <=