help-octave
[Top][All Lists]
Advanced

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

RE: parrayfun does not work?


From: Jon Morgaetxebarria Aurrekoet
Subject: RE: parrayfun does not work?
Date: Thu, 23 May 2019 12:45:49 +0000

OK.  I checked with pkg list to see that the package was already installed. I 
thought that loading was not necessary

Thanks a lot Kai

-----Mensaje original-----
De: Kai Torben Ohlhus <address@hidden> 
Enviado el: jueves, 23 de mayo de 2019 13:21
Para: Jon Morgaetxebarria Aurrekoet <address@hidden>
CC: address@hidden
Asunto: Re: parrayfun does not work?

On Thu, May 23, 2019 at 9:37 AM Jon Morgaetxebarria Aurrekoet
<address@hidden> wrote:
>
> Hello,
>
> Trying to use pararray fun. As with my macro does not work I have tried with 
> a dummy example found in  internet but it does not  work (see below). Octave 
> says undefined ‘pararrayfun’. ¿Is there something  wrong?
>
> Octave version : 4.2.2
>
> Linux-Ubuntu: 18.04 64 bits(Gnome 3.28.2)
>
> Parallel package: 3.1.3.tar.gz
>
> # fun is the function to apply
>
> fun = @(x) x^2;
>
> vector_x = 1:10;
>
> vector_y = pararrayfun(2, fun, vector_x)
>
> Saludo/Regards
>

Did you load the package already before running your code?

   pkg load parallel

Your example works for me with the loaded package using Octave 4.4.1.

HTH,
Kai

reply via email to

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