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

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

[Octave-bug-tracker] [bug #65927] movfun: output shape incorrect for dim


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #65927] movfun: output shape incorrect for dim>2
Date: Sun, 30 Jun 2024 05:20:13 -0400 (EDT)

Follow-up Comment #6, bug #65927 (group octave):

One of the tests is failing on the default branch for the buildbots. E.g.:
https://buildbot.octave.org/#/builders/23/builds/1107/steps/7/logs/stdio

>>>>> processing
/home/buildbotu/fc25-x86_64/gcc-lto-fedora/src/scripts/signal/movfun.m
***** test <*65927>
 a = reshape (1:30, 5, 3, 2);
 b1 = cat (3, [1, 6, 11], [16, 21, 26]) + [0, 0.5, 1.5, 2.5, 3.5]';
 b2 = cat (3, [1:5]', [16:20]') + [0, 2.5, 7.5];
 b3 = cat (3, [1:5]', [8.5:1:12.5]') + [0, 5, 10];
 assert (movfun (@mean, a, 2), b1, eps);
 assert (movfun (@mean, a, 2, 'dim', 1), b1, eps);
 assert (movfun (@mean, a, 2, 'dim', 2), b2, eps);
 assert (movfun (@mean, a, 2, 'dim', 3), b3, eps);
 a2 = cat (4, a, a, a, a);
 assert (size (movfun (@mean, a2, 2)), [5, 3, 2, 4]);
 assert (size (movfun (@mean, a2, 2, 'dim', 1)), [5, 3, 2, 4])
 assert (size (movfun (@mean, a2, 2, 'dim', 2)), [5, 3, 2, 4]);
 assert (size (movfun (@mean, a2, 2, 'dim', 3)), [5, 3, 2, 4]);
 assert (size (movfun (@mean, a2, 2, 'dim', 4)), [5, 3, 2, 4]);
!!!!! regression: https://octave.org/testfailure/?65927
movfun: failed validation of 'dim'.  Checked with "@(d) isempty (d) ||
(isscalar (d) && isindex (d, ndims (x)))"
shared variables 
    x =
        1    2    3    4    5    6    7    8    9   10
    wlen =
       2   1
    wlen02 =
       0   2
    wlen20 =
       2   0
    ctrfun =
@(x) x (wlen (1) + 1, :)
    UNO =
       1
       1
       1
       1
       1
       1
       1




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

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