octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47794] Built-in function ndims() fails on 3D


From: anonymous
Subject: [Octave-bug-tracker] [bug #47794] Built-in function ndims() fails on 3D array
Date: Wed, 27 Apr 2016 21:16:08 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0

URL:
  <http://savannah.gnu.org/bugs/?47794>

                 Summary: Built-in function ndims() fails on 3D array
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mi 27 Apr 2016 21:16:07 UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: barthie
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Code for reproduction:

>> a=cat(3,[1 2;3 4]);
>> ndims(a)
error: A(I): index out of bounds; value 4 out of bound 3

Guess the the singleton dimension is the reason for that. However, built-in
functions should handle this case properly.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47794>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]