Questions tagged [hypercube]

31 questions
6
votes
1 answer

Python - corner coordinates of n-dimensional cube

I'm trying to get the coordinates of an n-dimensional cube from a list of the mins and maxes for each dimension. I'm able to get the corners using for loops but I would like to generalize for any number of dimensions. So for instance: mins =…
user945754
5
votes
3 answers

C++ How to generate the set of cartesian product of n-dimensional tuples

I wish to generate some data that represents the co-ordinates of a cloud of points representing an n-cube of n dimensions. These points should be evenly distributed throughout the n-space and should be able to be generated with a user-defined…
Ben
  • 107
  • 1
  • 12
4
votes
1 answer

Algorithm to dynamically generate m-face list for n-dimensional hypercube

I'm attempting to design an algorithm that, given n, m, and vertices (where n = the dimension of a hypercube, m = the dimension of the faces we're trying to generate, and vertices is an ordered list of vertices in an n-dimensional hypercube),…
4
votes
1 answer

Get all perfect matchings of Hybercubes In Python

I am working on hyper-cubes. I am currently using networX in python. I read that networkX is a very good library for working on graphs. My problem is that 1) I want to construct the all perfect matchings of hypercube Q4 and Q5. 2) Then i want to…
Khalid Shah
  • 3,132
  • 3
  • 20
  • 39
4
votes
1 answer

Unable to use view_cube command due to issue with wx

I am seeing following issue: In [5]: img = open_image("2018-09-21_005.hdr") In [6]: view_cube(img, bands=[29, 19, 9]) ModuleNotFoundError Traceback (most recent call…
texassiga
  • 79
  • 1
  • 1
  • 6
3
votes
1 answer

How-to map process to an Hypercube using MPI_CART

I am trying to implement bitonic sorting using MPI for 2^n processors. I would like to use an n-dimensional hypercube to do so for convenience. Using MPI_Cart_Create I can create self-organising dimensions. Doing so will maximize efficiency of my…
matdumsa
  • 16,005
  • 1
  • 22
  • 18
2
votes
2 answers

Hypercube with multidimensional vectors

I'm trying to implement a hypercubeclass, that is, multidimensional vectors. I have a problem generalizing it. I'm able to make one for a three dimensional hypercube, but as mentioned, the problem is generalizing it. Could anyone help me? You should…
shizzle
  • 183
  • 2
  • 12
2
votes
2 answers

Hadoop Hypercube

Hey, i am starting a hadoop based hypercube with a flexible number of dimensions. Does anybody know any existing approaches for this? I just found PigOLAPSketch, but there is no code to use it. Another approach is Zohmg from lastfm, which uses…
Torben Brodt
  • 117
  • 4
2
votes
1 answer

A leader election algorithm for an oriented hypercube

I'm stuck with some problem where I have to design a leader election algorithm for an oriented hypercube. This should be done by using a tournament with a number of rounds equal to the dimension D of the hypercube. In each stage d, with 1 <= d < D…
john
  • 315
  • 3
  • 5
2
votes
1 answer

4D to 3D perspective projection

Im trying to calculate the position of 4D point in 3D world. I started with 2D and tried to extend it to the 3D and then to 4D. Firstly, I found out that its easy to calculate the projected position of 2D point on the line. Whoops, there should be…
noisy cat
  • 2,865
  • 5
  • 33
  • 51
2
votes
0 answers

Simple parallel mergesort in C using hypercube structure

I am attempting to write a simple parallel mergesort algorithm to help me understand the concept of hypercube communication. I have a C program that generates an array of random integers and assigns threads to sort the data. Each thread serially…
1
vote
1 answer

What is a way to create all vectors from the hypercube in dimension n?

I want to store in a matrix all the vectors that are created by the hypercube in dimension n, that is, for dimension n=3 for example : matrix = [[0 0 0], [0 0 1], [0 1 0], [0 1 1], [1 0 0], [1 0 1], [1 1 0], [1 1 1]] Is there a good way…
Flewer47
  • 145
  • 5
1
vote
0 answers

How to show loading message in mashup Qlik Sense

im trying to show a loading message when mashup app is obtaining data from Qlik server but i don't get good result with my approach. My approach is something like that: First i get de current selections from getLists method and when selections…
Figa17
  • 781
  • 7
  • 20
1
vote
0 answers

Selections on Dimensions from Hypercube Qlik Sense Mashups

I am trying to do some selections on dimensions grabbed with a hypercube. I got all the dimensions from the hypercube which is surpressing 0 and missing values, and I created a JS Object to make everything easier to get/understand. It looks…
Rusu Alex
  • 23
  • 8
1
vote
0 answers

Constructor functions, arrays and objects

I am trying to sole these two problems and any input would be appreciated. My solutions to this one works but the output object keep repeating the "Sample" before the object on an array. (1) Latin Hypercube Sampling Write a function that produces N…
Ario
  • 11
  • 2
1
2 3