I received several pieces of advice concerning my previous question on the
use of 2-D arrays. However, none of these pieces of advice resulted in
code that works.
The latest suggestion
In numpy it's
import numpy as npy
a = npy.zeros((256,256))
produced this error message:
NameError:
On Sun, Oct 12, 2008 at 3:39 PM, Linda Seltzer
[EMAIL PROTECTED] wrote:
These are the import statements I used:
import numpy as npy
from numpy.oldnumeric import *
Here is an example that works for any working numpy installation:
import numpy as npy
npy.zeros((256, 256)).
If those are the
On Sun, Oct 12, 2008 at 03:11, David Cournapeau [EMAIL PROTECTED] wrote:
On Sun, Oct 12, 2008 at 3:39 PM, Linda Seltzer
[EMAIL PROTECTED] wrote:
These are the import statements I used:
import numpy as npy
from numpy.oldnumeric import *
Here is an example that works for any working numpy
2008/10/9 David Bolme [EMAIL PROTECTED]:
I have written up basic nearest neighbor algorithm. It does a brute
force search so it will be slower than kdtrees as the number of points
gets large. It should however work well for high dimensional data. I
have also added the option for user
Here is an example that works for any working numpy installation:
import numpy as npy
npy.zeros((256, 256))
This suggestion from David did work so far, and removing the other import
line enabled the program to run.
However, the data types the program used as defaults for variables has
changed,
2008/10/12 Linda Seltzer [EMAIL PROTECTED]:
Here is an example that works for any working numpy installation:
import numpy as npy
npy.zeros((256, 256))
This suggestion from David did work so far, and removing the other import
line enabled the program to run.
However, the data types the
Linda Seltzer wrote:
Here is an example that works for any working numpy installation:
import numpy as npy
npy.zeros((256, 256))
This suggestion from David did work so far, and removing the other import
line enabled the program to run.
However, the data types the program used as defaults
On Oct 12, 2008, at 5:26 PM, Anne Archibald wrote:
Python is a dynamically-typed language (unlike C), so variables do not
have type.
Another way to think of it for C people is that all variables
have the same type, which is reference to Python object.
It's the objects which are typed, and not
On Sun, Oct 12, 2008 at 9:11 AM, Linda Seltzer
[EMAIL PROTECTED]wrote:
Here is an example that works for any working numpy installation:
import numpy as npy
npy.zeros((256, 256))
This suggestion from David did work so far, and removing the other import
line enabled the program to run.
On 10/12/2008 2:39 AM Linda Seltzer apparently wrote:
Please, no demeaning statements like you forgot
a parenthesis or you were using someone else's code
- just the lines of code for a file that actually *works.*
Those statements are not demeaning; lighten up.
And the answer was correct.
Those statements are not demeaning; lighten up.
STOP IT. JUST STOP IT. STOP IT RIGHT NOW.
Is there a moderator on the list to put a stop to these kinds of statements?
I deserve to be treated with respect.
I deserve to have my questions treated with respect.
I deserve to receive technical
Friends,
Those statements are not demeaning; lighten up.
STOP IT. JUST STOP IT. STOP IT RIGHT NOW.
Let us not go to this place, honestly, there is no need. Let's go
back to the technical problem again.
Linda, did you have time to try Alan's example?
Best,
Matthew
L. Brooks of M.I.T. sent a professional e-mail with a code fragment that
has worked.
Friends,
Those statements are not demeaning; lighten up.
STOP IT. JUST STOP IT. STOP IT RIGHT NOW.
Let us not go to this place, honestly, there is no need. Let's go
back to the technical problem again.
Linda,
If you're familiar with Matlab syntax, you may find this link interesting:
http://www.scipy.org/NumPy_for_Matlab_Users
Here another couple of useful links
http://www.scipy.org/Tentative_NumPy_Tutorial
http://www.scipy.org/Numpy_Functions_by_Category
For your specific example, if you want
14 matches
Mail list logo