<p dir="auto">This is on master and a recent build of the release-0.3 branch.</p>
<p dir="auto">If there are duplicates in the indexes, <code class="notranslate">sparsevec</code> creates a matrix as advertised, and values with duplicate indexes are added by default.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; sv = sparsevec([1,1,2,3,4], ones(5))
4x1 sparse matrix with 4 Float64 entries:
    [1, 1]  =  2.0
    [2, 1]  =  1.0
    [3, 1]  =  1.0
    [4, 1]  =  1.0"><pre lang="jlcon" class="notranslate"><code class="notranslate">julia&gt; sv = sparsevec([1,1,2,3,4], ones(5))
4x1 sparse matrix with 4 Float64 entries:
    [1, 1]  =  2.0
    [2, 1]  =  1.0
    [3, 1]  =  1.0
    [4, 1]  =  1.0
</code></pre></div>
<p dir="auto">But the <code class="notranslate">rowval</code> and <code class="notranslate">nvval</code> fields sometimes but not always have extra values.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; sv.rowval
5-element Array{Int64,1}:
 1
 2
 3
 4
 4"><pre lang="jlcon" class="notranslate"><code class="notranslate">julia&gt; sv.rowval
5-element Array{Int64,1}:
 1
 2
 3
 4
 4
</code></pre></div>
<p dir="auto">I'm not sure that this is actually a bug, because it seems <a href="https://github.com/JuliaLang/julia/blob/215249d7365c302eff312239615d21657c4d07df/base/sparse/sparsematrix.jl#L274-L279">intentional</a>, but this causes hcat not to work:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; [sv sv]
ERROR: DimensionMismatch(&quot;tried to assign 5 elements to 4 destinations&quot;)
 in throw_setindex_mismatch at operators.jl:233
 in setindex! at array.jl:330
 in hcat at sparse/sparsematrix.jl:1802"><pre lang="jlcon" class="notranslate"><code class="notranslate">julia&gt; [sv sv]
ERROR: DimensionMismatch("tried to assign 5 elements to 4 destinations")
 in throw_setindex_mismatch at operators.jl:233
 in setindex! at array.jl:330
 in hcat at sparse/sparsematrix.jl:1802
</code></pre></div>
<p dir="auto">Using <code class="notranslate">sparse([1,1,2,3,4], ones(Int, 5), ones(5))</code> instead of <code class="notranslate">sparsevec</code> does not cause this issue.</p>
<p dir="auto">hi All,<br>
I am attempting to compile Julia as per instructions but receiving the following message at the end of the compilation</p>
<p dir="auto">make[4]: *** [dgemm_kernel_HASWELL.o] Error 1<br>
make[4]: *** Waiting for unfinished jobs....<br>
make[3]: *** [libs] Error 1<br>
*** Clean the OpenBLAS build with 'make -C deps clean-openblas'. Rebuild with 'make OPENBLAS_USE_THREAD=0 if OpenBLAS had trouble linking libpthread.so, and with 'make OPENBLAS_TARGET_ARCH=NEHALEM' if there were errors building SandyBridge support. Both these options can also be used simultaneously. ***<br>
make[2]: *** [openblas-v0.2.10.rc2/libopenblas.so] Error 1<br>
make[1]: *** [julia-release] Error 2<br>
make: *** [release] Error 2</p>
<p dir="auto">Could anyone help shed some light as to what the problem is please.</p>
<p dir="auto">For Info - the OS is centos 6.5</p>
<p dir="auto">Thanks</p>
<p dir="auto">Peter</p>