Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
158 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
3 votes
2 answers
126 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
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
-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
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
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
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
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
0 votes
1 answer
113 views

I have this intermediary buffer that has the entire contents of a file: char *intermediary_buffer I need to move this to a different 2D buffer: char **final_buffer Where a new row is started every ...
Everlee Jones's user avatar
2 votes
1 answer
123 views

The C++ standard library, and specifically its part involving containers and ranges, is mostly "one-dimensionally oriented" - things have a start and and end you go from start to end. If you ...
einpoklum's user avatar
  • 137k
1 vote
3 answers
117 views

I have an array of some parameters (like a YAML config file) and this need to be written to database finaly with primary ids and so on. For example this is a part of my array: $settings = [ 'basic'...
Joeker's user avatar
  • 123
2 votes
2 answers
80 views

I am trying to sort the values in the Data array into Column arrays X1,X2, and Y_actual. The code I have written out makes sense to me, and returns the correct array1,array2, and array3 values if I ...
Jackatoe's user avatar
0 votes
3 answers
150 views

I am trying to use a for loop to create a series of data, assign that data and the index number to an array, and then send that array to a worksheet. This sends only the data and not the index number ...
Squid1622's user avatar
3 votes
2 answers
124 views

Suppose I have a database in memory that I want to modify. Let's say the tables are phone information and items. The phone information consists of a name up to 99 characters and a character code. The ...
Mike S's user avatar
  • 33
0 votes
4 answers
185 views

char array[8][13]; memset (&array, 0, sizeof(array)); /* this is a rough example this is in a struct that is memset */ if (array[0]) { printf("this is valid"); /* again this code is ...
John Reed's user avatar
1 vote
2 answers
107 views

I am trying to sort the tuples in the 2D array based on a single column value similar to Javascript's sort function. arr.sort((a,b) => a[0] - b[0]) C Code : #include<stdio.h> #...
Bittu970's user avatar
  • 107
0 votes
1 answer
66 views

Note: I have no idea what one might call this operation, so I've gone with "cut-and-overlap". Please let me know if there is an accepted terminology for something like this! Intro I need to ...
Heisenbugs's user avatar
0 votes
0 answers
37 views

I have an array img_data of shape (x, x, n_channels) and I want to convolve / smooth along the axis=2. Specifically, I would like the output shape to be (x,x,n_channels//3), after convolving the ...
Anks_Eagle's user avatar
-3 votes
1 answer
51 views

My result I need to make the number of stars decrease with each line, but I have no idea how. import random import numpy as np import sys size = int(sys.argv[1]) mat = np.full((size, size), '\x1b[35m....
wbowser 's user avatar
0 votes
0 answers
81 views

I am unable to create a json object with nested objects. See the code and the current output versus the desired output. Goal Output: { "carlist" : [ { "attributes": [ { ...
CavFife's user avatar
1 vote
2 answers
93 views

A list $tags = 'a','b','c','d','e' the process $array = New-Object 'object[,]' 3,5 $array[0,0] = $tags[0] $array[0,1] = $tags[1] $array[0,2] = $tags[2] $array[0,3] = $tags[3] $...
deetle's user avatar
  • 437
0 votes
2 answers
103 views

I'm working on a tool to create inputs for array simulations, where various inputs are iterated over multiple series to create all combinations of inputs. Some values need to iterate coupled together, ...
Tristan Muzzy's user avatar
0 votes
3 answers
221 views

I am currently attempting to create a triple pointer to point to and update the contents of a statically allocated 3d array in C. The updating of the elements of the array will be completed by a ...
frank's user avatar
  • 41
1 vote
1 answer
79 views

when I get my data series with foreach, I get the result in the structure below in the structure [N]==1 match result 1 win [N]==2 match result ends in a draw [N]==3 match result away win [O] parts are ...
user29401486's user avatar
1 vote
0 answers
94 views

I have an ndarray array that is used throughout my program: Note: ndarray and nalgebra are both used here, imported as nd and na respectively. let test: nd::ArrayBase<nd::OwnedRepr<na::...
Pioneer_11's user avatar
  • 1,441

1
2 3 4 5
724