# \`sparsevec\` operations

**URL:** <https://discourse.julialang.org/t/sparsevec-operations/756>\
**Category:** General Usage\
**Created:** [December 6, 2016, 11:12am UTC](https://discourse.julialang.org/t/sparsevec-operations/756 "2016-12-06T11:12:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [December 6, 2016, 11:12am UTC](https://discourse.julialang.org/t/sparsevec-operations/756/1 "2016-12-06T11:12:38Z")

</div>

Is this intended behaviour?

```julia
b = sparsevec([1], [1.0], 10)
typeof(b * b')
# Array{Float64,2} instead of SparseMatrixCSC

```

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [April 1, 2017, 2:47pm UTC](https://discourse.julialang.org/t/sparsevec-operations/756/2 "2017-04-01T14:47:33Z")

</div>

I don’t know if you ever filed an issue for this, but it looks like this works correctly on master, now that we have `RowVector`s and sparse broadcast has seen a major overhaul. Behavioral tests for this kind of thing would be welcome, it might not be covered by existing tests.

---

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [April 1, 2017, 10:59pm UTC](https://discourse.julialang.org/t/sparsevec-operations/756/3 "2017-04-01T22:59:23Z")

</div>

Thanks for the update. I don’t think Infiles an issue.
