About 50 results
Open links in new tab
  1. What does [:, :] mean on NumPy arrays - Stack Overflow

    Sorry for the stupid question. I'm programming in PHP but found some nice code in Python and want to "recreate" it in PHP. But I'm quite frustrated about the line: self.h = -0.1 self.

  2. Array increment positioning with respect to indexer in C - array [i ...

    Sep 29, 2011 · An illustration. Suppose that array contains three integers, 0, 1, 2, and that i is equal to 1. array[i]++ changes array[1] to 2, evaluates to 1 and leaves i equal to 1. array[i++] does not modify …

  3. How do I declare and initialize an array in Java? - Stack Overflow

    Jul 29, 2009 · The third way of initializing is useful when you declare an array first and then initialize it, pass an array as a function argument, or return an array. The explicit type is required.

  4. Which comes first in a 2D array, rows or columns? - Stack Overflow

    Jul 25, 2012 · When creating a 2D array, how does one remember whether rows or columns are specified first?

  5. What does `array[^1]` mean in C# compiler? - Stack Overflow

    Oct 26, 2020 · What does `array [^1]` mean in C# compiler? [duplicate] Ask Question Asked 5 years, 5 months ago Modified 3 months ago

  6. How to create an array containing 1...N - Stack Overflow

    We'll use that fact later. Array.apply(null, [undefined, undefined, undefined]) is equivalent to Array(undefined, undefined, undefined), which produces a three-element array and assigns …

  7. How do I empty an array in JavaScript? - Stack Overflow

    Aug 5, 2009 · Is there a way to empty an array and if so possibly with .remove()? For instance, A = [1,2,3,4]; How can I empty that?

  8. How can I initialize all members of an array to the same value?

    How would you use memset to initialize a int array to some value larger than 255? memset only works if the array is byte sized.

  9. What is the way of declaring an array in JavaScript?

    Is what the authors trying to say is Array(10) creates an array with precisely 10 elements and [10] creates an array of undefined size with the 0th element being 10? Or what does this mean?

  10. How to pass an array through $_GET array? - Stack Overflow

    Mar 28, 2025 · How to pass an array through $_GET array? Asked 16 years, 3 months ago Modified 12 months ago Viewed 184k times