Questions tagged [dimensions]

Dimensions of an array define its size and shape -- the arangement of elements in the array. Use this Tag for questions regarding the shape of arrays.

1238 questions
-2
votes
1 answer

Changing array dimension

I have the following array which has the dimension (4,1): [0,0] [0,1] [1,0] [1,1] How can I convert it to a (4,2) dimension to look as follows? [[0 0] [0 1] [1 0] [1 1]] Thanks.
Simplicity
  • 47,404
  • 98
  • 256
  • 385
-2
votes
1 answer

Displaying WooCommerce dimension planes (length / width / height) in Additional Information tab

If you enter a dimension in the WooCommerce product page it will display that in the Additional Info tab, but it doesn't state which plain it is, whether length, width, or height. How can I get it to display this? In my product, in most cases, I…
Ashley
  • 131
  • 11
-2
votes
2 answers

Why should you use a 2D array of structs?

I`m curious about if there are cases to use a 2D array of structures, like f.e.: typedef struct { //member variables }myStruct; myStruct array2D[x][y]; //Uses cases of array2D[x][y]? Do we need them? Why should you use a 2D array of structs?
Leon
  • 346
  • 3
  • 15
-2
votes
1 answer

How do I make a function in C for checking if two matrices are same dimensions

I need a function that I could use to check if I could multiply two matrices. In it, I should check if the matrices are the same dimension, if not function returns -1, else returns 1. Later, function below multiplies matrices and returns **matrix…
Pers
  • 15
  • 8
-2
votes
1 answer

Is it possible to get " raw " data from Google Analytics, then to group the data yourself?

I need to get data from one query using 13 dimensions and 13 metrics. Because of the limitation, I can't do that. Q: is it possible to get raw data or how can you combine data from multiple queries with different dimensions?
-2
votes
1 answer

Get all indexes of a multidimensional table

I am having trouble to create a (recursive) function that prints all possible indexes for a multi dimensional table. I got the information about the multi-dimensionality as an array. Example: int[]{6,6} would be a 2-dimensional table with 6x6 = 36…
Thommy
  • 5,070
  • 2
  • 28
  • 51
-2
votes
1 answer

Fill the dessert in my head with "dimens" [xml]

Hello guys and girls. As i already asked, is someone here who can give me a hint how to calc the right ammount of dimens? As far as i know: dimens "small" support devices with a <=3,4 inch screen dimens "normal" from 3,4 to 5,0 dimens "large" from…
-2
votes
1 answer

Matlab repmat into long single dismension array?

I'm trying to take: a = [1 2 3] and repeat it 5 times to get: b = [1 2 3 1 2 3 1 2 3 1 2 3 1 2 3] but when I try: b = repmat(a, 5, 1) instead I get: b = 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 I…
ErinGoBragh
  • 336
  • 4
  • 20
-2
votes
1 answer

gcallowverylargeobjects not solving dimension limitation in C#

In my C# code, I need to include a matrix in size 13805*55223; which I believe is not that large. To overcome RAM limitation, I am using gcAllowVeryLargeObjects, and I have also unchecked prefer 32-Bit system. Doing all of that, I still face "Array…
Mohamad S.
  • 21
  • 1
  • 2
-2
votes
1 answer

Best way to name folders/files when using Dimensions such as inches?

Trying to find if there is a safe way to name files and folders while including dimensions in inches. For example. I have many graphics (book covers) with different print dimensions. 4.25 x 7 Cover 0.50. in. Spine So the file would look something…
Mark
  • 544
  • 2
  • 6
  • 8
-2
votes
1 answer

Image uploaded but dimensions still the same of source

if ( $_FILES["ufile"]["type"] [$i] == "image/jpeg" || $_FILES["ufile"]["type"] [$i] == "image/jpg" || $_FILES["ufile"]["type"] [$i] == "image/png" || $_FILES["ufile"]["type"] [$i] == "image/gif" ) { if ($_FILES["ufile"]["type"] [$i] ==…
Ali Os
  • 1
  • 1
-2
votes
1 answer

Number of dimensions of Iris dataset?

Does anyone familiar with the Iris data set? Please correct me if I am wrong, but this data set has 4 dimensions. However, ndims returns only 2. How is that possible?
dee
  • 1
  • 1
-3
votes
1 answer

repeat records data.table R based on dimensions values

I have a dataset where the data is structured this way dt<- data.table( item=c("G,S,GS","G,S"), timePeriod=c("1995:2000","2006), refArea = c("DE,SE","DE,SE,SK,SI") ) the result is something like: test2 <- data.table( …
IRT
  • 209
  • 2
  • 11
-3
votes
1 answer

How to get all coordinates for a n-dim array, given its dimensions

Say you're given a tuple for the dimensions of an n-d array, i.e. (3,3) is a 3x3 matrix, (4,5,6) is a 4x5x6 matrix, etc. How can I write a function that can return a list of all indices possible? dimensions = (2,2) get_coordinates(dimensions) …
-3
votes
1 answer

Android DPI - a lie?

So I create sets of assets for an Android UI - 320 x 400 & 480 x 800 both of these at 160 and 240 dpi... After Drawing some of the assets as 9 patch a weird thing happened. The 9 patch graphics all 'came out' as 72 dpi but with different…
1 2 3
82
83