Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

numpy

Matplotlib runs out of memory when plotting in a loop

August 12, 2022 by Magenaut

I have a fairly simple plotting routine that looks like this:

Categories Python, Q&A Tags matplotlib, numpy, python Leave a comment

Is there anything faster than dict()?

August 12, 2022 by Magenaut

I need a faster way to store and access around 3GB of k:v pairs. Where k is a string or an integer and v is an np.array() that can be of different shapes.

Categories Python, Q&A Tags dictionary, numpy, python, python-3.x, python-internals Leave a comment

Max in a sliding window in NumPy array

August 12, 2022 by Magenaut

I want to create an array which holds all the max()es of a window moving through a given numpy array. I’m sorry if this sounds confusing. I’ll give an example. Input:

Categories Python, Q&A Tags max, numpy, performance, python, scipy Leave a comment

Overflow Error in Python’s numpy.exp function

August 12, 2022 by Magenaut

I want to use numpy.exp like this:

Categories Python, Q&A Tags numpy, python, scipy Leave a comment

Get year, month or day from numpy datetime64

August 12, 2022 by Magenaut

I have an array of datetime64 type:

Categories Python, Q&A Tags datetime, numpy, python Leave a comment

Using Numpy stride_tricks to get non-overlapping array blocks

August 12, 2022 by Magenaut

I’m trying to using numpy.lib.stride_tricks.as_strided to iterate over non-overlapping blocks of an array, but I’m having trouble finding documentation of the parameters, so I’ve only been able to get overlapping blocks.

Categories Python, Q&A Tags numpy, python Leave a comment

Are Decimal ‘dtypes’ available in NumPy?

August 12, 2022 by Magenaut

Are Decimal data type objects (dtypes) available in NumPy?

Categories Python, Q&A Tags numpy, python Leave a comment

Efficient way to take the minimum/maximum n values and indices from a matrix using NumPy

August 12, 2022 by Magenaut

What’s an efficient way, given a NumPy matrix (2D array), to return the minimum/maximum n values (along with their indices) in the array?

Categories Python, Q&A Tags numpy, optimization, performance, python Leave a comment

How to split a numpy array in fixed size chunks with and without overlap?

August 12, 2022 by Magenaut

Lets say I have an array:

Categories Python, Q&A Tags arrays, multidimensional-array, numpy, python Leave a comment

Are numpy’s basic operations vectorized, i.e. do they use SIMD operations?

August 12, 2022 by Magenaut

I am doing some performance analysis, and i wonder, whether numpy vectorizes its standard array operations, when the datatype is known (double).

Categories Python, Q&A Tags numpy, python, python-3.x Leave a comment
Older posts
Newer posts
← Previous Page1 … Page47 Page48 Page49 … Page53 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress