Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Dynamic indexing

$
0
0

Given a multi dimensional array A with N dimensions, I want to programmatically index so that : is used for all dimensions but for the k’th dimension it is fixed to a specific value v. Eg for N=4 and k=2 and v=1;

A[:,:,1,:]

I want to this selection programmatically. Is it possible?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles