This forum has been archived. All content is frozen. Please use KDE Discuss instead.

3D and 4D matrices

Tags: None
(comma "," separated)
phorton
Registered Member
Posts
4
Karma
0
OS

3D and 4D matrices

Thu Jul 09, 2009 2:55 pm
Hi,

I've spent the last two days comparing matrices libraries and I decided myself for Eigen, which sounds pretty amazing. I have to work with 3D and 4D datasets. I didn't succeed to get a matrix with dimensions higher than 2, and when I try to make a vector of matrices (or matrix of matrices), I get an error as it is not a valid Scalar.

Is there a way to do it ?
Is Eigen still a good choice for such kind of datasets (4 dimensions: time(>1000 values), height(1-3 values), longitudes(5-100 values), latitudes(5-100 values)) ?
I need high performance as a priority. My procedure is the following: I fill once the matrix and then iterate on the time axis to make some linear algebra between this "slice" and every other time steps. It means a lot of iterations on one matrix.

Thanks, Pascal
Andre
Registered Member
Posts
90
Karma
1

Re: 3D and 4D matrices  Topic is solved

Thu Jul 09, 2009 3:09 pm
So you're actually searching for a Tensor library, not a matrix library?
If you want to iterate over matrices you can use a STL container like vector<>, see http://eigen.tuxfamily.org/dox/StlContainers.html
phorton
Registered Member
Posts
4
Karma
0
OS

Re: 3D and 4D matrices

Thu Jul 09, 2009 4:38 pm
Yes, you're right, I work on tensors. However, the calculations are always processed at the matrix level. So the iteration over matrices should be a solution. Thanks for the link.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]