scientific-computing

multithreaded blas in python/numpy

multithreaded blas in python/numpy Question: I am trying to implement a large number of matrix-matrix multiplications in Python. Initially, I assumed that NumPy would use automatically my threaded BLAS libraries since I built it against those libraries. However, when I look at top or something else it seems like the code does not use threading …

Total answers: 4

Discrete Laplacian (del2 equivalent) in Python

Discrete Laplacian (del2 equivalent) in Python Question: I need the Python / Numpy equivalent of Matlab (Octave) discrete Laplacian operator (function) del2(). I tried couple Python solutions, none of which seem to match the output of del2. On Octave I have image = [3 4 6 7; 8 9 10 11; 12 13 14 15;16 …

Total answers: 4

Is the order of a Python dictionary guaranteed over iterations?

Is the order of a Python dictionary guaranteed over iterations? Question: I’m currently implementing a complex microbial food-web in Python using SciPy.integrate.ode. I need the ability to easily add species and reactions to the system, so I have to code up something quite general. My scheme looks something like this: class Reaction(object): def __init__(self): #stuff …

Total answers: 6

Open source alternative to MATLAB's fmincon function?

Open source alternative to MATLAB's fmincon function? Question: Is there an open-source alternative to MATLAB’s fmincon function for constrained linear optimization? I’m rewriting a MATLAB program to use Python / NumPy / SciPy and this is the only function I haven’t found an equivalent to. A NumPy-based solution would be ideal, but any language will …

Total answers: 10