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

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

[Octave-bug-tracker] [bug #47298] zeros() with empty dimensions but non


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #47298] zeros() with empty dimensions but non zero rows or columns does not fail
Date: Sun, 28 Feb 2016 18:07:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.6.1

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

                 Summary: zeros() with empty dimensions but non zero rows or
columns does not fail
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Sun 28 Feb 2016 18:07:03 GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: carandraug
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Check for the dimensions for zeros() seems a bit odd.


>> zeros ([])
error: zeros (A): use zeros (size (A)) instead
>> zeros (zeros (0, 1))
ans = 0
>> zeros (zeros (1, 0))
ans = 0
>> zeros (zeros (0, 0, 1))
error: zeros (A): use zeros (size (A)) instead


It should have errored in all of the examples above. 




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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