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

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

[Octave-bug-tracker] [bug #65928] movfun dimension constraints: shouldn'


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #65928] movfun dimension constraints: shouldn't error for dim > ndims(x), or wlen > size(x, dim), or wlen=1
Date: Sun, 21 Jul 2024 20:26:09 -0400 (EDT)

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

pushed a couple changes to default:

1)
https://hg.savannah.gnu.org/hgweb/octave/rev/d2d5fbc6934b 
allows all movfun to accept non-integer valued wlen.  not one of the summary
issues, but required for some of the later changes.

2) 
https://hg.savannah.gnu.org/hgweb/octave/rev/e5e41c222908
allows wlen to take values larger than size(x, dim). there were a number of
errors with different wlen inputs.  e.g., something like movfun(@sum, 1:10,
11) would throw an error, while movfun(@sum, 1:10, [5 6]) would pass input
validation but trigger other unhandled errors later.

this should also allow wlen = 1, and dim > ndims(x) (which was necessarily
hitting wlen > size(x, dim) since higher dims are singleton).  

also expect once these are tackled, enabling the Samplepoints option should
also be a straightforward add. 


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
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]