Re: [eigen] A 15-dimensional sparse matrix or tensor? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] A 15-dimensional sparse matrix or tensor?
- From: "Janek Kozicki (yade)" <jkozicki-yade@xxxxxxxxx>
- Date: Thu, 28 Sep 2023 13:50:28 +0200
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
- Organization: Gdańsk University of Technology, YADE software
Hi Pavel,
mostly it will be addition and multiplication of the entries,
together with some operations involving the indices. This is still in
the design stages, so I will know more in the incoming weeks.
Thank you for your idea. Perhaps I will have to go with a unified
wrapper class, then try different underlying structures to see which
one works best.
Thank you very much for your suggestions.
best regards
Janek Kozicki
Pavel Holoborodko said: (by the date of Thu, 28 Sep 2023 20:21:24 +0900)
> What operations do you need to do with such tensors?
>
> You can implement the simplest way to store the sparse tensor - by storing
> the coordinates of the non-zero values + values itself.
> Then implement tensor operations for such a storage format.
>
> If density of non-zeros is very low (as you say), then this simple data
> structure will be efficient and simple.
>
>
> On Wed, Sep 27, 2023 at 9:21 PM 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