# Questions tagged [numpy]

NumPy is the fundamental package for scientific computing with Python.

159 questions
Filter by
Sorted by
Tagged with
71 views

### Compute a series of matrix multiplications and matrix norms quickly in Python

I need to compute a series of matrix multiplications involving 3x3 matrices and a series of matrix norms also involving 3x3 matrices and I wonder how I can set these computations up with numpy such ...
69 views

...
159 views

### Time and memory required to diagonalize a 18000 by 18000 matrix using numpy in python

Can someone give an estimate of the Time and memory required to diagonalize a 20000 by 20000 complex hermitian matrix using numpy in python ?
194 views

109 views

### How to convert from a non traditional CSV-style content (file with JSON data but its extension is .CSV) to a traditional CSV-style with Python?

CSV (even though once opened it does not contain a traditional CSV format I think it contains JSON data)[!, when I try to open it as a TXT file I got this as shown in the first screenshot. When I ...
134 views

### Find two lines around which points were randomly generated

Given a list of points that were randomly generated around two lines, find two new lines that match the original lines as closely as possible. Here's the function definition: ...
70 views

### Planes in n-dimensional space

This is not a homework, but a hobby project, and maybe not all terms I use are correct - please help to fix. Imagine there are K vectors in n-dimensional space. I would like to: validate whether they ...
93 views

### How to save multiplication computation time between a dense vector and a not that sparse matrix?

I am trying to compute $\mathbf{X}\mathbf{u}$ for many times in my algorithm, where $\mathbf{X}\in \mathbb{R}^{n\times m}$ and $\mathbf{u} \in \mathbb{R}^{m}$. The problem is that, during the ...
18k views

### plotting discontinuous functions

I need help plotting the Heaviside function: Real analysis often involves constructing bizarre functions which are intuitively correct, but ultimately wrong. See the great book Counterexamples in ...
83 views

Note; No special knowledge of Pykrige is needed to answer the question, as I already mention examples in the question! Hi I would like to use Universal Kriging in my code. For this I have data that ...
278 views

### How can I reduce the artifact in "Thin Plate Spline" interpolation?

At the Top "right", there is the 2D-density plot of the recorded data (actual), fewer in number. Recorded data has been sampled a on the 8 arms of a regular octagon. These 8 arms are placed ...
108 views

### Fitting gauss-hermite-parametrization to data?

I want to fit this data. I have the following model functions. Classic gaussian: def gauss_model(x, mu, sigma): return np.exp(-0.5*((x-mu)/sigma)**2) And ...