12.yakir
12.yakir

Reputation: 323

Multidimensional sparse matrices in Julia

Why aren't there any multidimensional sparse matrices/arrays in Julia? Why can we only have 2D sparse matrices and not for example 3D sparse matrices (or arrays)?

Upvotes: 16

Views: 2667

Answers (1)

StefanKarpinski
StefanKarpinski

Reputation: 33290

The problem as I understand it (I'm not sparse linear algebra expert, although Viral Shah, who is one of the other Julia co-founders is) is that all libraries (e.g. SuiteSparse) for doing sparse computations are matrix-only. They don't support sparse vectors and they don't support higher dimensional tensors either. So we could define types for higher-dimensional sparse tensors, but you wouldn't be able to do anything useful with them.

Upvotes: 10

Related Questions