# Is there a replacement for AbstractSparseMatrix

**URL:** https://discourse.julialang.org/t/is-there-a-replacement-for-abstractsparsematrix/15429
**Category:** New to Julia
**Created:** [September 24, 2018, 5:18pm UTC](https://discourse.julialang.org/t/is-there-a-replacement-for-abstractsparsematrix/15429 "2018-09-24T17:18:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![threadedblue](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/threadedblue/32/19247_2.png) [@threadedblue](https://discourse.julialang.org/u/threadedblue)
#### Post date: [September 24, 2018, 5:18pm UTC](https://discourse.julialang.org/t/is-there-a-replacement-for-abstractsparsematrix/15429/1 "2018-09-24T17:18:33Z")

</div>

All,

I am dealing with some legacy code that is not my own. It uses a type AbstractSparseMatrix, which is valid in 0.6 but apparently not in 1.0.

Is there a direct replacement? I can find nothing.

Thanks all

---

<div class="post-metadata">

### Author: ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)
#### Post date: [September 24, 2018, 5:22pm UTC](https://discourse.julialang.org/t/is-there-a-replacement-for-abstractsparsematrix/15429/2 "2018-09-24T17:22:13Z")

</div>

```julia
julia> using SparseArrays

julia> AbstractSparseMatrix
AbstractSparseArray{Tv,Ti,2} where Ti where Tv

```

---

<div class="post-metadata">

### Author: ![threadedblue](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/threadedblue/32/19247_2.png) [@threadedblue](https://discourse.julialang.org/u/threadedblue)
#### Post date: [September 24, 2018, 5:26pm UTC](https://discourse.julialang.org/t/is-there-a-replacement-for-abstractsparsematrix/15429/3 "2018-09-24T17:26:50Z")

</div>

That worked.

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [September 25, 2018, 8:15am UTC](https://discourse.julialang.org/t/is-there-a-replacement-for-abstractsparsematrix/15429/4 "2018-09-25T08:15:33Z")

</div>

With legacy code you want to be using 0.7 rather than 1.0, because it will give you deprecation warnings about things that have changed. Once you’ve addressed the warnings by fixing the code, you can switch back to 1.0.
