Multidimensional-arrays can be described as multi-dimensional tables. Each index used in order to find a given element is called a dimension.
23
votes
0answers
420 views
How to marshal multi-dimensional arrays in F#
We have some interop code that involves matrices. I was trying to call the native DLL and for the most part it works very reliably.
I am relying on the default marshalling by .net, avoiding unmanaged ...
5
votes
0answers
2k 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 ...
3
votes
0answers
108 views
applying numpy.searchsorted over multiple axes
I'm trying to pass a 2d array of sorted values and a 1d array of values to searchsorted and have it return a corresponding 1d array of index values. I have to perform this operation many times, and ...
3
votes
0answers
320 views
Multiprocessing : NULL result without error in PyObject_Call
Here is a sample program where I use multiprocessing. The calculations are done with multiprocessing.Process and the results are collected using multiprocessing.Queue.
#THIS PROGRAM RUNS WITH ~40Gb ...
3
votes
0answers
207 views
Value Error :Storing data from binary file into numpy 3d arrays
I am trying to read float numbers from a Binary file using Struct module and then storing them in numpy 3D arrays.When I run it as an independent script, it works fine.But when I call it as a class's ...
2
votes
0answers
41 views
Trying to write a Java program to encrypt and decrypt a ADFGVX cyphir, finding it confusing
I need to be able to encrypt and decrypt a message using a Polybius Square, I know how this works on paper but dont know where to start when turing it into a program. I was planning to use a hashmap ...
2
votes
0answers
29 views
create a multidimensional random matrix in spark
With the python API of Spark I am able to quickly create an RDD vector with random normal number and perform a calculation with the following code:
from pyspark.mllib.random import RandomRDDs
...
2
votes
0answers
51 views
Java storing objects in a multidimensional array
I'm attempting to store objects in a multidimensional array in an attempt to save each position in a game boards 'state', however after the loop which is supposed to set each instance to it's own ...
2
votes
0answers
23 views
Create/update nested array from a single array
I'm trying to create a very specific data structure with simple arrays but have got into some issues that I have troubles solving.
I have an empty array and one that I want to build the empty array ...
2
votes
0answers
55 views
Check if value is Array, If so - show it
I try to do the following:
<div class="appDetailsContainer">
<div class="appDetails" ng-repeat="(key, value) in CurrentVC">
<p class="appHeader">{{key}}:</p>
...
2
votes
0answers
58 views
Which multidimensional data storage to use?
I have a project I'm working on in which I need to have first, an infinite 2d array of integers (probably somewhat small) each of these containing another 2d array 100x100, in each of those, another ...
2
votes
0answers
86 views
How to extract a two-dimensional array of single precision floats from a QVariant?
I am using the ThermoVision SDK in Qt to communicate with a FLIR A320 IR Camera. The ThermoVision SDK is ActiveX based. I am having trouble retrieving an image from the camera with the GetImage ...
2
votes
0answers
136 views
CGAL How to use global indices on vertices in dDimensional Triangulation?
The Problem
Using CGAL, I am creating a random point cloud in d-Dimensional space like so:
#include <CGAL/Cartesian_d.h>
#include <CGAL/point_generators_d.h>
#include ...
2
votes
0answers
102 views
How do I use MPI to scatter a 2d array?
I am trying to use MPI to distribute the work for bucket sort. When I scatter the array, I wanted each process to receive a single bucket (int array) and be able to print its content. However, my ...
2
votes
0answers
221 views
C# resize multi dimension array
How can I resize all dimensions of a multi-dimension (int, char, string, double, etc.) array?
I made this which works, but it is only works with Array class:
private Array ResizeArray(object Arr, ...
2
votes
0answers
220 views
2D Numpy Array Beginner troubles
my issues is with trying to work with arrays that for each elements is a tuple of 2 values.
specifically the problem is to generate a random 2-dimensional walk of 200 (but for testing say 2) steps ...
2
votes
0answers
201 views
How to persist multi dimensional array with Morphia
I am trying to persist this class into mongodb using Morphia,
@Entity
public class A {
@Id
private String id;
private int[][][] param = {{{0,0},{1,1}}, {{2,2},{3,3}}};
}
The ...
2
votes
0answers
422 views
Android multiple dialogs under tabactivity showDialog(0)
I wanted to create a multiple Activitiy under tab dialog. But the problem is that when I press the button, I get the following error: and apps from bases.
06-18 19:57:06.444 E / AndroidRuntime ...
2
votes
0answers
133 views
How to dive dynamic 2D array in totalview
Following this thread I would like to share a related issue: how to dive int ** as 2D array in totalview? (in which the solution is discussed here). In case anyone faces the same issue, I hope this ...
1
vote
0answers
24 views
segmentation failure while allocating memory for a 2D array in c [SOLVED]
I have a function that returns all the combinations of letters possible in the alphabet with repetition in a word of length LENTH_MAX. The function returns these combinations in a 2D array call 'arr'.
...
1
vote
0answers
36 views
Merge multidimensional PHP arrays
From this foreach:
foreach ($statisticheProdotti as $values) {
$prod[] = $values['nome'];
$nomi = array_values(array_unique($prod, SORT_REGULAR));
$arr = ...
1
vote
0answers
17 views
PHP: Filtering multidimensional arrays
I'm trying to filter the following multidimentional array:
Array (
[0] => stdClass Object ( [term_id] => 5 [name] => Freelance [slug] => freelance-category1 [term_group] => 0 ...
1
vote
0answers
73 views
Writing a Java program to encrypt and decrypt a ADFGVX cipher
I need to be able to encrypt and decrypt a message using a Polybius Square. I know how this works on paper but don't know where to start when turning it into a program. I was planning to use a hash ...
1
vote
0answers
30 views
Render multi-dimensionnal arrays in TWIG
I am fetching associated objects through 3 tables (“User”,” Client”,” Account”). “User” has a one-to-many relationship to “Client”, “Client” has a one-to-many relationship to “Account”. I fetch all ...
1
vote
0answers
52 views
Filter in vba for excel multidimensional array
I need to fetch the number and details of data like a multidimensional array. The probleme is I need to make it with VBA so it's only with 1 click.
I need to fetch the data according to the date, ...
1
vote
0answers
31 views
PHP - getting data from multidimensional array with objects
I have a problem modifying one of WP plugins, I need to insert some data from an object into a MySQL table, but I have troubles with pulling it out of an object array
Here is a piece of var_export of ...
1
vote
0answers
51 views
Highlighting “Legal Moves” In chess-like game on panel array- Java
this is more of a logic question than syntax but I'm sure you guys have better ways to do it than me anyway. So I have some pieces (JLabels) on a board (11x11 Grid of JPanels on a JPanel) all in a ...
1
vote
0answers
69 views
Writing an efficient code for row-wise reshaping of multi-dimentsional array
I am converting my matlab code to C-code. I need to write a function for "reshaping" multi-dimensional array similar to "reshape" function in matlab who does it in "row-wise" manner.
Though I can ...
1
vote
0answers
61 views
Add value to row of multidimensional vector c++ with push_back
I want to push_back only one column in a multidimensional vector. How do I only access and push_back the vector at a specific row with an int?
typedef vector<int> Row;
typedef vector<Row> ...
1
vote
0answers
18 views
Find location address for sepcific element in array
I want to know how to find memory address for specific Index in three dimensioned array without do that by code such as i have array[5][5][6] I want to find the location in memory for index element ...
1
vote
0answers
82 views
error realloc 2D array
I would like to realloc a 2D array. I have a counter, itime it increases each step. Each step, I would like to reallocate my array, keeping the old values, and add new values to the array. When ...
1
vote
0answers
21 views
Mimicking a join and group by statement with multidimensional array
Source/Input
I have a multidimensional array:
array (size=2)
'array_one' =>
array (size=2)
0 =>
array (size=2)
0 => string 'ABC' (length=3)
1 => ...
1
vote
0answers
56 views
Why do I get a segmentation fault when trying to copy an array from stdin to a 2d array?
This is in relation to the HackerRank Restaurant problem, which I have solved in other languages but am trying, now, to solve in C.https://www.hackerrank.com/challenges/restaurant
I first tried to ...
1
vote
0answers
69 views
Need help on compare and merge two array?
I have following two arrays which comes from the same database use the same query to get both. both contains information about a single sales order having two different line items(Bill of materials) ...
1
vote
0answers
50 views
Can multidimensional arrays cause 403 forbidden errors?
Let's say I have a php hash with questions as the keys to subhashes that have answers as the keys to their correctness values:
$questions = array(
//1
"What?" => array(
"Answer A" ...
1
vote
0answers
26 views
What is a best practise for multidimensional parameters map?
Good day Stackoverflow community!
I would like to know any best practices for the following problem:
I need to build a system that will return certain value (say, partner ID) based in several input ...
1
vote
0answers
38 views
How to retain newly added values on a two-dimensional array (JAVA)
I'm stuck at this part of my program. These are 2 options for my Student Information System (not using GUI/JOption and without linking to a database. I already have a 2-dimensional array (String ...
1
vote
0answers
39 views
weird array behavior with .push
I'm working on a scheduling script that grabs schedule data from a multidimensional array and pushes only the values from the original array that correspond to the current time to a second ...
1
vote
0answers
64 views
How to populate forms with multidimensional names
I'm using larave4 and cannot populate forms with multidimensional names.
I need to pre-populate form with data to display to the screen.
I understand and have tested the following works
$values = ...
1
vote
0answers
110 views
Downcasting Multidimensional Arrays Swift
I am trying to downcast a multidimensional array property which is required by a protocol in a subclass of the protocol conforming class. However currently the compiler is giving me a an error when I ...
1
vote
0answers
96 views
Slow access to multidimensional array's items
I am experiencing one minor problem with Swift.
I am porting my old C++ code to it, and there are several places where I am using two-dimensional arrays.
Swift code now looks like:
var ...
1
vote
0answers
41 views
2D binary string pyevolve
I am new to pyevolve and GA in Python.
I am trying to make a 2D binary array representing matches. Something like this:
A B C
1 1 0 0
2 0 1 0
3 1 0 0
4 0 0 1
My goal is to have only one "1" in ...
1
vote
0answers
55 views
Arbitrary and consistent change of array values for no apparent reason in c
The code below generates a 3x3 matrix with random integer values between 1-9. The matrix is generated in the initSquare function and is printed in the printSquare function, but for some unknown ...
1
vote
0answers
93 views
Multidimensional array with many sub
Hello, everyone!
Can anyone help me create this multidimensional array?
$page_nav = array(
"dashboard" => array(
"title" => "Dashboard",
"url" => "ajax/dashboard.php",
"icon" ...
1
vote
0answers
105 views
Angular JS 2 depth dynamic model
I want to create a dynamic model in angularjs. There is not seem to be a way to work as i want. I tried to declare as array but not even then worked
Controller
$scope.cccdirect = {}
$scope.items = [
...
1
vote
0answers
18 views
Store Multidimentional Array In Cookies
I want to Save user current histroy in cookies
For Example
Cookie named histroy stores data like this
var history1 = ['post_link' , 'post_name' , 'post_image']
and if user open another post ...
1
vote
0answers
69 views
Class with Multidimensional Container
I am working on a Recurrent Neural Network in C++ using the Qt library. It gets constructed with a vector containing the topology where the number of elements define the number of layers and each ...
1
vote
0answers
177 views
PHP Multidimensional array within nested foreach loop
Working on a wordpress metabox-plugin and trying to save metadata as a multidimensional array (in text that i explode later on).
This is my code:
function wordpress_metabox() {
$event_adress = ...
1
vote
0answers
392 views
PHP SoapClient: How to pass complex-type parameters to a webservice?
I'm having trouble passing nested array parameters while accessing a SOAP-Service from a PHP Application.
I found several threads regarding this issue, but none of them solved my problem.
So I hope ...
1
vote
0answers
143 views
nested loop cell array condition Matlab
I'v a cell array containing multiple dimensional cells (rows and columns obviously) and I want some operations in a nested loop, but I want the outer loop condition for every dimension of cell, as ...