[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Allocating N-dimensional Array in C++
From: |
Søren Hauberg |
Subject: |
Allocating N-dimensional Array in C++ |
Date: |
Sat, 06 Mar 2010 10:53:57 -0800 |
Hi All
I can't seem to figure out how to use 'dim_vector' in C++ (using the
development sources). Say, I want to create a 4 dimensional array of
size 1x7x3x2, then I would have thought I should do something like
dim_vector size (4, 1);
size (0) = 1;
size (1) = 7;
size (2) = 3;
size (3) = 2;
NDArray A (size);
This, however, seems to create a 1x7 array. So, what is the right way of
accomplishing this? Also, should I be using 'NDArray' or 'Array<double>'
these days?
Thanks,
Søren
- Allocating N-dimensional Array in C++,
Søren Hauberg <=
- Re: Allocating N-dimensional Array in C++, Carlo de Falco, 2010/03/06
- Re: Allocating N-dimensional Array in C++, Jaroslav Hajek, 2010/03/06
- Re: Allocating N-dimensional Array in C++, Søren Hauberg, 2010/03/07
- Re: Allocating N-dimensional Array in C++, Jaroslav Hajek, 2010/03/07
- Re: Allocating N-dimensional Array in C++, Søren Hauberg, 2010/03/07
- Re: Allocating N-dimensional Array in C++, Jaroslav Hajek, 2010/03/08
- Re: Allocating N-dimensional Array in C++, Søren Hauberg, 2010/03/08
- Re: Allocating N-dimensional Array in C++, John W. Eaton, 2010/03/15