I have an array of integers. For example: array = [123,321,12389] Is there any nice way to get the sum of
I had an interesting job interview experience a while back. The question started really easy: Q1: We have a b
I have a problem. I need to iterate through every element in an n-dimensional matrix in MATLAB. The problem is
Consider the following simple speed test for arrayfun: T = 4000; N = 500; x = randn(T, N); Func1 = @(a) (3*a^
I've noticed that a lot of good answers to MATLAB questions on Stack Overflow frequently use the functio
I want to write a script that loops through 15 strings (array possibly?) Is that possible? Something like: f
I'm currently trying Firestore, and I'm stuck at something very simple: "updating an array (aka a su
I have recently migrated my module to Drupal7 (on PHP Version 5.3.1) and now I am getting following errors:
After doing some processing on an audio or image array, it needs to be normalized within a range before it can
I need to create a NumPy array of length n, each element of which is v. Is there anything better than: a = e
In numpy / scipy, is there an efficient way to get frequency counts for unique values in an array? Something
I have created an array thusly: import numpy as np data = np.zeros( (512,512,3), dtype=np.uint8) data[256,256
What is the difference between ndarray and array in Numpy? And where can I find the implementations in the num
I have two simple one-dimensional arrays in NumPy. I should be able to concatenate them using numpy.concatenat
What is the simplest way to compare two NumPy arrays for equality (where equality is defined as: A = B iff for
What is the difference between Numpy's array() and asarray() functions? When should you use one rather th
I can't figure out how to use an array or matrix in the way that I would normally use a list. I want to c