Questions tagged [n-dimensional]

n-dimensional involves computation in higher dimensions

Usually used in math,physics,machine learning and computer graphics. Its common to downgrade n-dimensional problems down to 4D/3D/2D/1D using techniques like:

  • projection
  • cross-section
  • PCA

either to lower the needed processing or storage power needed to handle it or to visualize or just to simplify.

110 questions
1
vote
1 answer

Vectorize multi-dimensional array population on octave

This is my actual code: Lr = linspace(100,300,10); vi = linspace(10,30,10); vf = linspace(10,30,10); b = linspace(0.5,1.2,10); h = linspace(0.3,0.8,10); Rc = [1000, 1500, 2000, 2500, 3000, 3500; 29, 22.4, 17.3, 13.4, 10.4, 8]; rti = randi(5,…
1
vote
2 answers

Turning a 6 value 1 dimensional numpy.ndarray into a 6 dimensional

I have a numpy ndarray with 6 values in 1 dim. These 6 values represent a point in 6 dimensions. How do I convert it in numpy to get a 6d array? Backstory: I need this 6d layout for my neural network. The training happend with 6d data. For making…
quibelua
  • 13
  • 3
1
vote
0 answers

Generalizing Cython code for n-dimensional arrays

I am writing a lot of Cython code that needs to generalize to n dimensions (most of the time this will be n = 1, 2, or 3). Take the following code as an example, this is a simple sum of the elements. cimport cython from cython cimport…
jhansen
  • 1,096
  • 1
  • 8
  • 17
1
vote
1 answer

Python Numpy - 3-dimensional indices in 2-dimensional array without loop

I want to construct an array V1, of shape (n,p,q) using an array of indices, idx, with the same shape, applied to an array V0, of shape (p,q). The way to construct it with a loop is the following. for i in range(n): V1[i,:,:] =…
Valentin
  • 11
  • 1
1
vote
1 answer

Error: memory exhausted (limit reached?) due to outer function

I developed a script where I processed two large arrays (both of thousands of rows), "parent" and "product" The starting dataset is something like…
AeonRed
  • 77
  • 6
1
vote
1 answer

TI-BASIC: Indexing to Prompt or Input command

I have a TI-84 Plus, and I am creating a program to calculate the magnitude of an n-dimensional vector. I have included my code and its output below. Program Editor: PROGRAM:NTHDMAG Disp "HOW MANY DIMENSIONS?" Prompt…
1
vote
0 answers

N-dimensional high order polynomial interpolation

I am searching some clues about a complex issue that I am facing, regarding interpolation in a 4D space. I have a dataset composed by 340 points in a 3-dimensional space (I have three variables - A, B, C - each defined by 340 elements). Each point…
1
vote
1 answer

Is it possible to realize column-wise operation and row-wise operation by one template function?

Here is my problem, I am dealing with a n-dimensional data. Let's say n=2 for simplicity. Also I have an algorithm for 1D data. In order to extend this algorithm for 2D problem, I can do for each row apply algorithm However, if I want to apply…
Di Miao
  • 206
  • 2
  • 7
1
vote
0 answers

Using CGAL Triangulation to get d-dimensional convex hull

As the title suggests, I need to compute the convex hull of a number of d-dimensional points (where the number of points is usually around 20 and d is around 50). I spent a good day or so reading the documentation and searching the net, but it seems…
1
vote
2 answers

Accessing n-dimensional array in R using a function of vector of indexes

my program in R creates an n-dimensional array. PVALUES = array(0, dim=dimensions) where dimensions = c(x,y,z, ... ) The dimensions will depend on a particular input. So, I want to create a general-purpose code that will: Store a particular…
sda
  • 143
  • 1
  • 10
1
vote
1 answer

Implementing an N-dimensional Matrix in C++

I want to implement my own N-dimensional Matrix class in C++. I am, however, stuck as to how I would go about implementing it, especially when it comes to implementing the operators to access an element in that matrix. Any suggestions?
alguru
  • 404
  • 6
  • 16
1
vote
2 answers

I need to create a n-dimensional point with coordinates. The Constructor should take any number of coordinates.

There is alot more in this project but I dont know how to start Im stuck on how to create a constructor with an array that will take a unknown number of dimensions in a point.
sptBot
  • 51
  • 8
1
vote
1 answer

Permutations/Combinations of bounded numbers in C#

Here's something which has been bugging me for the past two days. I need to populate an initial configuration(/state)-space for a fixpoint algorithm. In this statespace, each transition weight has a vector of weights, and different bounds may apply…
MrPyro
  • 13
  • 3
0
votes
0 answers

How to minimize clones for implementation of NdArray

I have a general n-dimensional array type I implemented with: pub struct NdArray { pub shape: [usize; N], pub data: Vec, } impl NdArray { // Creates a new NdArray from an…
JS4137
  • 314
  • 2
  • 11
0
votes
1 answer

What data structure can I used for N-dimensional data with category names instead of integer indices?

After iterating through multiple nested loops to train multiple DL models, I want to poke around in the results to compare how different changes to hyperparameters, different datasets, and different model architectures performed. The data feels like…