All Questions
Tagged with boost-multi-array multidimensional-array
15 questions
1
vote
1
answer
132
views
Initializing const boost multi_array
I have several large arrays of 64-bit integers whose values are expensive to calculate, so I presently have generator codes in my build system that calculate the constants and generate the .cpp files ...
2
votes
1
answer
98
views
(c++) Storing lambda function in a boost multi_array
My plan is to store hundreds (or even thousands) of (interpolation) functions in the multidimensional array multi_array from the boost library. I need to store them, since I need to call them at ...
3
votes
1
answer
573
views
In a boost::multi_array, which is the type of a sub-array?
If I have a
boost::multi_array<int,2> myArray(boost::extents[10][10]);
Which type is the following?
myArray[4]
How should I define a reference to it in a function interface?
int doSomething(...
0
votes
3
answers
324
views
cpp multidimensional vector [closed]
I want to store theses string vectors as a 4 dimensional vector. It has been three days that I am searching and I can not decide wether use multidimensional vector,boost multi array ,array of struct ,....
36
votes
4
answers
6k
views
Compare blitz++, armadillo, boost::MultiArray
I did a comparison between blitz++, armadillo, boost::MultiArray with the following code (borrowed from an old post)
#include <iostream>
using namespace std;
#include <windows.h>
#define ...
0
votes
1
answer
646
views
C++:How to have an array of boost::multi_array
Hi I have a few boost::multi_array defined as below:
typedef boost::multi_array<double, 3> region_prior_integral_image
I am trying to create an array of region_prior_integral_image like the ...
7
votes
1
answer
1k
views
pointers to a class in dynamically allocated boost multi_array, not compiling
I'm working with boost::multi_array.
I want an object of class "world" to have an array named "chunk" of type "octreenode". Previously I had an ordinary one-dimensional ...
0
votes
1
answer
612
views
Selecting a NxM sub matrix from boost::MultiArray by variable
I have multiple NxM matrices and want to select one of them by a variable. My best guess was to use boost::MultiArray to create a NxMxP matrix an then select via third dimension.
I implemented it ...
0
votes
2
answers
767
views
how to get specific elements from a const boost::multi_array
I would like to know how to read elements from a const boost::multi_array object.
Indeed to my knowledge I can't use the operator [] because it's also used to assignement.
I have a 3-D dimentional ...
2
votes
1
answer
379
views
Boost Signed/Unsigned Comparsion of size_type and index of multi_array
I'm using a boost::multi_array and when I need to check if a given coordinate is within bounds, I do this:
bool MapData::IsWithinBounds(TileArray3D::index x, TileArray3D::index y, TileArray3D::index ...
5
votes
1
answer
676
views
Boost multi_array range compilation
A range can be used to slice a Boost Multidimensional array (multi_array). According to the documentation there are several ways of defining a range, however not all of them will compile. I'm using ...
3
votes
1
answer
1k
views
Iterating over the dimensions of a boost::multi_array
I'm trying to write some dimension-independent code for a template class in c++, using a boost::multi_array (though if other containers/data structures are better at this, I'd be happy to hear about ...
9
votes
1
answer
6k
views
how to traverse a boost::multi_array
I have been looking into the boost::multi_array library in search of an iterator that allows you to traverse the whole multi_array in a single for loop.
I don't think there is any such iterator in ...
12
votes
1
answer
3k
views
What is the difference betwen boost::multi_array views and subarrays
After looking the documentation I cannot figure this one out.
I can write code such as
typedef boost::multi_array<boost::int32_t, 3> data_t;
// 3d --
typedef data_t::array_view<3>::type ...
2
votes
2
answers
1k
views
Boost.MultiArray Beginner: How to get a 4D-Array with dynamic inner-array-sizes?
i want to store some kind of distance-matrix (2D), where each entry has some alternatives (different coordinates). So i want to access the distance for example x=1 with x_alt=3 and y=3 with y_alt=1, ...