Does Matlab support efficient operations on large sparse tensors?
More specifically:
sparse
, of loading and storing a sparse tensor? As far as I can understand, sparse
can only load matrices.I realize I can always store a tensor as a combination of cell arrays of matrices, but that would require using loops, and I'm hoping to avoid that.
Since the data I'm working with is very large, I cannot consider a non-sparse representation.
Out of the box, I believe MATLAB only handles sparse matrices, as you say.
But you might like to take a look at the Tensor Toolbox and the N-way Toolbox to see if they meet your needs. Both are freely available, and I've heard good things about both (although I've used neither myself). The Tensor Toolbox in particular seems to have at least some support for sparse multidimensional arrays.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With