I'm trying to plot some asymmetric error bars using seaborn. I can't understand why I'm getting a ValueError: operands could not be broadcast together ...
I'm trying to plot some asymmetric error bars using seaborn. I can't understand why I'm getting a ValueError: operands could not be broadcast together ...
input is a list of observations, every observation is fixed size set of elipses (every elipse is represented by 7 parameters). output is a list of im ...
I have a 2d array that contains other arrays but the arrays are of different sizes. I want to find the mean of each individual array that is contained ...
I could not for the life of me get array indexing to work properly with higher dimensional lexsort. I have an ndarray lines of shape (N, 2, 3). You c ...
Given a scalar, a 1D or an N-D numpy (numeric) array, I'd like to replace all values less than threshold with threshold. So, for example: (Note: Fo ...
I have 2 numpy arrays with dimensions NxM and Nxa. I would like to extract 'a' of the 'M' elements from each row of the NxM matrix with row-indices gi ...
Is it possible to explicitly broadcast a scalar to fit an array somehow similar to (So I want to add a dimension to s, even if it is only a scalar ...
Let T and L be two batches of matrices (MxN) and a function f(ti,lj) that calculates a score for matrices ti and lj. For instance, if T, L= torch.ran ...
I am wondering any good ways to calculate this type of multiplication. It's simply multiplying x[i] by x element-wise, and resulting into [2, 2, 3] m ...
I am trying to convert a nested loop over a numpy array into a numpy-optimized implementation. The function being called inside the loop takes a 4D ve ...
I am processing symmetric second order tensors (of stress) using numpy. In order to transform the tensors I have to generate a fully populated tensor, ...
Say I have 2 tensors, one with shape (10,1) and another one with shape (10, 11, 1)... what I want is to multiply those broadcasting along the first ax ...
I have two Numpy arrays, x and y, where x is n-dimensional with n>=1 but unknown at "compile time", whereas y is one-dimensional. The first dimensi ...
I have two input arrays and one output array like this: I want to do the following calculation: Can I do it without doing for loop since for loo ...
Suppose we have the following 2d arrays: I want to test the membership of the rows of A in the rows of B. For a single row of A we can test it's me ...
I have two Numpy arrays of different shapes, and I am concatenating them. But it takes too much memory and as a result creates/generates a conatenated ...
I have a (square) 2 dimensional numpy array where I would like to compare (subtract) all of the values within each row to each other but not to other ...
Problem: I want to calculate at several times the adjacency matrix A_ij given the adjacency list E_ij, where E_ij[t,i] = j gives the edge from i to j ...
Does anyone know how broadcasting in the first example could be generalized to the second example along axis 0 with no for loops? I tried normal ad ...
I am trying to set 2 columns by a condition on a 3rd column. I can set 1 column conditions on another column, and I can set 2 columns on a single cond ...