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

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

[Octave-bug-tracker] [bug #59328] [octave forge] (parallel) package unus


From: Muhali
Subject: [Octave-bug-tracker] [bug #59328] [octave forge] (parallel) package unusable
Date: Fri, 23 Oct 2020 15:54:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

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

                 Summary: [octave forge] (parallel) package unusable
                 Project: GNU Octave
            Submitted by: muhali
            Submitted on: Fri 23 Oct 2020 12:54:49 PM PDT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.0.90
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

At least with respect to the documentation the parallel package (parcellfun)
is not in a usable state right now. The following setting summarizes what I
mean. 

Using this function file


## /tmp/foo.m
function y = foo (x)
   y = factorial(x) ;
endfunction


and executing


pkg load parallel
addpath /tmp

bar = @(x) foo(x) ;

w = cellfun(@foo, {1, 2})
w = cellfun(bar, {1, 2})
w = parcellfun(1, @foo, {1, 2})
w = parcellfun(1, bar, {1, 2})


gives the correct (1, 2) and incorrect (-1, -1) results.

This happens with the current and with the dev versions of the package and of
octave.

Because no errors are returned, and because the documentation has not been
updated since the package has been reworked, at least a strong warning should
be issued when it is used.

I find it unfortunate that the old version somehow 'disappeared', which is
bound to break many user scripts.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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