# How to construct a large sparse matrix?

**URL:** <https://discourse.julialang.org/t/how-to-construct-a-large-sparse-matrix/7241>\
**Category:** General Usage\
**Tags:** question, sparse, matrices\
**Created:** [November 22, 2017, 5:11am UTC](https://discourse.julialang.org/t/how-to-construct-a-large-sparse-matrix/7241 "2017-11-22T05:11:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rveltz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rveltz/32/2707_2.png) [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Post date:** [November 22, 2017, 6:37am UTC](https://discourse.julialang.org/t/how-to-construct-a-large-sparse-matrix/7241/2 "2017-11-22T06:37:59Z")

</div>

Because `BitArray(n,n)` allocates the 10^6 x 10^6 array and then `sparse` transform it to a (full) sparse matrix

---

_[View the full topic](https://discourse.julialang.org/t/how-to-construct-a-large-sparse-matrix/7241)._
