# Using DefaultDict as a (high dimension) SparseArray?

**URL:** <https://discourse.julialang.org/t/using-defaultdict-as-a-high-dimension-sparsearray/59554>\
**Category:** Numerics\
**Created:** [April 18, 2021, 4:56pm UTC](https://discourse.julialang.org/t/using-defaultdict-as-a-high-dimension-sparsearray/59554 "2021-04-18T16:56:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpmuller](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rpmuller/32/2262_2.png) [@rpmuller](https://discourse.julialang.org/u/rpmuller)\
**Post date:** [April 18, 2021, 4:56pm UTC](https://discourse.julialang.org/t/using-defaultdict-as-a-high-dimension-sparsearray/59554/1 "2021-04-18T16:56:20Z")

</div>

I’m [currently](https://github.com/rpmuller/MolecularIntegrals.jl/blob/master/src/HGP2.jl) using dictionaries with multiple indices to store data from high dimension (12, in my case) sparse arrays.

As far as I know, the structures in SparseArrays only handle arrays of dimension 1 and 2.

Is there interest in developing something like this for general high dimension sparse array storage, or is mine an isolated use case?
