Ernest Adrogué skrev:
Suppose I want to find all 2-digit numbers whose first digit
is either 4 or 5, the second digit being 7, 8 or 9.
I came up with this function, the problem is it uses recursion:
[...]
In [157]: g([[4,5],[7,8,9]])
Out[157]: [[4, 7], [4, 8], [4, 9], [5, 7], [5, 8], [5,
[I am resending this as the previous attempt seems to have failed]
Hello List,
I am looking at memory errors when using numpy.linalg.eig().
Short version:
I had memory errors in numpy.linalg.eig(), and I have reasons (valgrind)
to believe these are due to writing to incorrect memory addresses
Ruben Salvador skrev:
[...] I want to create a 2D array where each
*row* is a copy of an already existing 1D array. For example:
In [25]: a
Out[25]: array([1, 2, 3])
[...]
In [30]: b
Out[30]:
array([[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]])
Without understanding
Neil Martinsen-Burrell skrev:
The persistence of the idea that removing Numpy's legacy features will
only be annoyance is inimical to the popularity of the whole Numpy
project. [...] Once scientists have working codes it is more than an
annoyance to have to change those codes. In some