× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Julia indexing Arrays in Vector

Utkarsh Upadhyay
Apr 16, 2015
<p>I am using Julia <code>v0.3.5</code> and this is the error message I see:</p> <pre><code>julia&gt; n = findnext(x[1,1,1],[1,3]) #Crash ERROR: `findnext` has no method matching findnext(::Array{Array{Int64,1},1}, ::Array{Int64,1}) </code></pre> <p><code>?findnext</code> reveals that it requires three arguments, <code>A, v, start::Integer</code>. The <code>start</code> is the index to <em>start</em> looking for the element:</p> <pre><code>julia&gt; n = findnext(x[1,1,1],[1,3], 1) 0 </code></pre> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/28911064/Julia%20indexing%20Arrays%20in%20Vector/28911111">Stack Overflow</a>.</p>
comments powered by Disqus