About 11,200,000 results
Open links in new tab
  1. How do I create a numpy array of all True or all False?

    Jan 16, 2014 · In Python, how do I create a numpy array of arbitrary shape filled with all True or all False?

  2. How to create an array containing 1...N

    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 …

  3. How do I declare an array in Python? - Stack Overflow

    Aug 23, 2022 · The array structure has stricter rules than a list or np.array, and this can reduce errors and make debugging easier, especially when working with numerical data.

  4. Remove duplicate values from a JavaScript array - Stack Overflow

    If you want to remove objects from an array that have exactly the same properties and values as other objects in the array, you would need to write a custom equality checking function to …

  5. Arrays vs Vectors: Introductory Similarities and Differences

    Feb 26, 2013 · What are the differences between an array and a vector in C++? An example of the differences might be included libraries, symbolism, abilities, etc. Array Arrays contain a …

  6. c - Pointer to an array and Array of pointers - Stack Overflow

    Nov 21, 2013 · A pointer to an array contains the memory location of an array. Whereas an array of pointers contains lots of memory locations, which contain single values (or possibly other …

  7. excel - Creating an Array from a Range in VBA - Stack Overflow

    Jun 8, 2016 · This function returns an array regardless of the size of the range. Ranges will return an array unless the range is only 1 cell and then it returns a single value instead. This function …

  8. c - Pointer to Array of Pointers - Stack Overflow

    Oct 9, 2016 · The correct answer is: int* arr[MAX]; int* (*pArr)[MAX] = &arr; Or just: int* arr [MAX]; typedef int* arr_t[MAX]; arr_t* pArr = &arr; The last part reads as "pArr is a pointer to array of …

  9. python - Find nearest value in numpy array - Stack Overflow

    Apr 2, 2010 · How do I find the nearest value in a numpy array? Example: np.find_nearest(array, value)

  10. Convert list to array in Java - Stack Overflow

    There are two styles to convert a collection to an array: either using a pre-sized array (like c.toArray (new String [c.size ()])) or using an empty array (like c.toArray (new String [0]). In …