help-octave
[Top][All Lists]
Advanced

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

Re: parrayfun does not work?


From: Kai Torben Ohlhus
Subject: Re: parrayfun does not work?
Date: Thu, 23 May 2019 13:20:48 +0200

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]