Skip to main content
2 votes
1 answer
156 views

I am attempting to move away from std::vector<std::vector<int>> types and use boost::multi_array in its place. I am struggling how to initialize such data members though. I used to have a ...
One_Cable5781's user avatar
Advice
0 votes
3 replies
89 views

I'm in C and I have an int ** (2 dimensional array, it's basically a matrix, it's actually set up a little bit complicated but there's no internal aliasing, so it's not relevant). is this int** ...
Snark's user avatar
  • 1,674
3 votes
2 answers
125 views

I'm trying to create a package of generic adjacency matrices to define graphs, and the first goal is to define a static version based on two-dimensional array: with Ada.Containers.Vectors; generic ...
tymurmchyk's user avatar
1 vote
2 answers
110 views

I have the following code to sort the items based on a timestamp. $arr = []; foreach(glob('*.json') AS $item) { $data = json_decode(file_get_contents($item), true); $arr[] = [ 'taken' =...
Airikr's user avatar
  • 6,468
1 vote
1 answer
89 views

I want to extract "email" from JSON using ADF/Synapse. Below is the JSON that I want to flatten and extract all "email" which is in an object in a multidimensional array: { "...
user31502762's user avatar
2 votes
1 answer
94 views

I want to read an Excel file without openening the file and put the result in a two dim. array. For this I use the below code Sub ReadExcelFileWithoutOpening() Dim conn As Object Dim rs As Object Dim ...
Stephan's user avatar
  • 665
-1 votes
1 answer
170 views

After some extensive search I could not find a clear answer to the following issue. When one is to compare the 1D (vector<type>) vs 2D (<vector<vector<type>>>) vector ...
rk85's user avatar
  • 163
1 vote
2 answers
186 views

In my initial question there was some confusion as to what I was really trying to do. Specifically, when I edit large images i store them in an array of pixels where Pixel image[iwid][ihei] is my ...
Vigor's user avatar
  • 11
1 vote
1 answer
108 views

I am using the following code for automatic vector/matrix template parameter deduction (I am particullarily interested in automatic deduction from passing initializer lists) template<class T, ...
Xenos's user avatar
  • 223
1 vote
2 answers
91 views

I am trying to convert an XML string into multi-dimensioned PHP array. The difficulties are that XML comes with attributes and has nested values. My code works at parent level data but I am not sure ...
user5705009's user avatar
2 votes
3 answers
192 views

I have a question about the performance tradeoffs between different ways of storing 2D arrays in memory in C. I know that if I declare a 2D matrix A with dimensions MxN by the following: int (*A)[N] = ...
Martin's user avatar
  • 85
0 votes
0 answers
86 views

I'm looking at the newly-introduced std::mdspan class template (also described here on SO). One of the template parameters is, according to cppreference: LayoutPolicy - specifies how to convert ...
einpoklum's user avatar
  • 137k
0 votes
1 answer
83 views

i would like to create a nested list of arbitrary depth (containing numerical values specifically) with uniform arbitrary lengths at each level and then compress it to a NumPy array of minimum ...
L8t Original's user avatar
1 vote
2 answers
72 views

Solution requirements: Pre C++11 Statements: Function someFunction exists, that accepts 2D vector as vector of string vectors: vector2d. Class someClass exists, that contains 1D vector of strings: ...
KamilK's user avatar
  • 11
1 vote
1 answer
84 views

#include <stdio.h> int main() { int arr[2][3] = {1,2,3,4,5}; printf("%d", (*arr)[4]); return 0; } See the array declaration in the above code. As per my knowledge, this ...
0xChaitanya's user avatar

15 30 50 per page
1
2 3 4 5
2412