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

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

[Octave-bug-tracker] [bug #59704] function call on classdef subobject fa


From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #59704] function call on classdef subobject fails with "numel: invalid return value"
Date: Wed, 16 Dec 2020 11:13:22 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?59704>

                 Summary: function call on classdef subobject fails with
"numel: invalid return value"
                 Project: GNU Octave
            Submitted by: svillemot
            Submitted on: mer. 16 déc. 2020 16:13:21 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hi,

I found another classdef-related regression that impacts Dynare.

It can be reproduced with the following steps (sorry for not providing a
minimal testcase, but I really don’t understand what’s going on):

$ git clone https://git.dynare.org/Dynare/dseries.git
$ cd dseries/
$ git checkout af4d2cc361a10f1b98c65bf05c0a71234566f9dc
$ octave
> addpath([ pwd '/src'])
> initialize_dseries_class
> d = randn(100,1);
> o = dseries(d);
> p = o.onesidedhpcycle();
error: @dseries/numel: invalid return value
error: called from
    one_sided_hp_filter
    onesidedhpcycle_ at line 79 column 17
    onesidedhpcycle at line 44 column 5
    subsref at line 135 column 19


Note that this example succeeds with Octave 5.2.0 (as well as with MATLAB).






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59704>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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