Thanks guys, works like a charm!
A

On Wednesday, July 23, 2014 4:32:56 PM UTC+2, Tim Holy wrote:
>
> A[end:-1:1, ...] 
>
> On Wednesday, July 23, 2014 07:07:20 AM Andrei Berceanu wrote: 
> > Hi guys, 
> > 
> > I have 2 short numpy-related questions. 
> > 
> > In numpy, if one can invert an arbitrary array *arr* along a given axis 
> > using the syntax 
> > 
> >     *arr[::-1,...]* 
> > 
> > What is the equivalent idiom in Julia? 
> > 
> > The other issue is, how can I truncate an array between a lower and 
> upper 
> > bound? 
> > In numpy, this is easily done with np.clip: 
> > 
> >     http://docs.scipy.org/doc/numpy/reference/generated/numpy.clip.html 
> > 
> > Tnx! 
> > A 
>
>

Reply via email to