python Programming Glossary: computations
Change process priority in Python, cross-platform http://stackoverflow.com/questions/1023038/change-process-priority-in-python-cross-platform I've got a Python program that does time consuming computations. Since it uses high CPU and I want my system to remain responsive..
Getting list of pixel values from PIL http://stackoverflow.com/questions/1109422/getting-list-of-pixel-values-from-pil down the image always 320x240 into 240 lines to make the computations easier Or am I just calling the wrong function. If anyone has..
OpenMP and Python http://stackoverflow.com/questions/11368486/openmp-and-python example or use C extensions that release GIL during computations e.g. some of numpy functions example . You could easily write..
Reliable and efficient key--value database for Linux? http://stackoverflow.com/questions/1690605/reliable-and-efficient-key-value-database-for-linux
Longest equally-spaced subsequence http://stackoverflow.com/questions/18159911/longest-equally-spaced-subsequence and pretty efficient. But in some cases it does some extra computations that may be avoided. Search may be terminated as soon as subsequence..
Why program functionally in Python? http://stackoverflow.com/questions/1892324/why-program-functionally-in-python or list comprehension that would let you do plain normal computations in line you still pay that level of indirection of course. It's..
How to define a decimal class holding 1000 digits in python? http://stackoverflow.com/questions/19980840/how-to-define-a-decimal-class-holding-1000-digits-in-python prec 1000 decimal.setcontext context From now on computations will use 1000 digits precision. Example decimal.setcontext decimal.Context.. context # here decimal uses 1000 digits for computations pass # here the default context is restored. share improve..
Good open-source neural network Python library? http://stackoverflow.com/questions/2276933/good-open-source-neural-network-python-library simple open source Python library to do neural network computations. It should be able to deal with multiple layer networks and..
Live video stream on server (PC) from images sent by robot through UDP http://stackoverflow.com/questions/4035365/live-video-stream-on-server-pc-from-images-sent-by-robot-through-udp CPU and 256MB RAM so it is not enough for any serious computations moreover there are already couple modules running on the robot..
In-place type conversion of a NumPy array http://stackoverflow.com/questions/4389517/in-place-type-conversion-of-a-numpy-array is inherent to the two different algorithms . All further computations assume that a is an array of float32 . Currently I do the conversion..
How can I efficiently process a numpy array in blocks similar to Matlab's blkproc (blockproc) function http://stackoverflow.com/questions/5073767/how-can-i-efficiently-process-a-numpy-array-in-blocks-similar-to-matlabs-blkpro compatible with the shape of A. # simple shape and strides computations may seem at first strange # unless one is able to recognize..
How to parallelize list-comprehension calculations in Python? http://stackoverflow.com/questions/5236364/how-to-parallelize-list-comprehension-calculations-in-python multiprocessing module it's pretty easy to parallelize computations. import multiprocessing try cpus multiprocessing.cpu_count except..
Is there a way to instantiate a class without calling __init__? http://stackoverflow.com/questions/6383914/is-there-a-way-to-instantiate-a-class-without-calling-init purpose it is to store one single parameter and do some computations with it. The parameter however is not passed as such but it..
Python Parallel Threading http://stackoverflow.com/questions/6537448/python-parallel-threading the Python implementation cpython's GIL prevents parallel computations from being faster than sequential ones. Consider using the multiprocessing..
Find the number of occurrences of a subsequence in a string http://stackoverflow.com/questions/6877249/find-the-number-of-occurrences-of-a-subsequence-in-a-string above . Dynamic programming avoids such redundant computations by remembering the results from previously solved subproblems..
Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell http://stackoverflow.com/questions/6964392/speed-comparison-with-project-euler-c-vs-python-vs-erlang-vs-haskell is slower than Int but how much slower depends on the computations performed. Luckily for 64 bit machines Int is sufficient. For..
Using Python's Multiprocessing module to execute simultaneous and separate SEAWAT/MODFLOW model runs http://stackoverflow.com/questions/9874042/using-pythons-multiprocessing-module-to-execute-simultaneous-and-separate-seawa share improve this question I don't see any computations in the Python code. If you just need to execute several external..
|