Hi Janek,

We do support 2-dimensional sparse matrices in Eigen, but the Tensor class
does not support sparsity. Perhaps you could use a 13-dimensional array of
2-D sparse matrices, but of course you will not be able to use the nice
tensor syntax directly.

BTW: We have mostly switched away from this mailing list, in favor of the
discord server here: https://discord.gg/M4EWf9yP

Best,
   Rasmus

On Wed, Sep 27, 2023 at 5:20 AM Janek Kozicki (yade) <
[email protected]> wrote:

> Hi,
>
> in my incoming work on implementing Loop Quantum Gravity I will need
> a 15-dimensional sparse matrix (or tensor) to store the quantum
> gravity data in a 15-dimensional basis. The data is very sparse, most
> of it are zeros. But if I tried to use a regular vector<vector<....>> 15
> times
> I will quickly run out of memory.
>
>
> So, does libeigen offer such data type?
>
> best regards
> Janek Kozicki
>
> --
> Janek Kozicki, PhD. DSc. Arch. Assoc. Prof.
> Gdansk University of Technology (Gdansk Tech)
> Faculty of Applied Physics and Mathematics
> Institute of Physics and Applied Computer Science
> Division of Theoretical Physics and Quantum Information
> --
> http://yade-dem.org/
> http://pg.edu.pl/p/jan-kozicki-19725
> http://mostwiedzy.pl/en/jan-kozicki,19725-1
>
>
>

Reply via email to