Re: [eigen] A 15-dimensional sparse matrix or tensor?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi Rasmus,

thank you for your reply. Maybe I will do it this way with a 13-dim
array plus 2D sparse matrices. With a suitable wrapper class it
should be manageable. I need to think about this.

Sometimes I use discord, but it cannot compete with my email client
which I use daily. But thanks for letting me know :-)

best regards
Janek Kozicki


Rasmus Munk Larsen said:     (by the date of Wed, 27 Sep 2023 11:05:14 -0700)

> 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) <
> jkozicki-yade@xxxxxxxxx> 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



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/