[SciPy-user] scipy-user list

Zakaria Ali zakaria@aims.ac...
Wed Sep 19 07:24:07 CDT 2007


Hello

Im having a probleme to generalete someting like that.

e1=(1,0.0)
e2=(0,1,0)
e3=(0,0,1)

I want to generalete ej=(0,...,0,...,   ) and in position number j I want
to  have 1
Are there  command in python for this?
But how I can do the generalisation of this?

I'm looking  for an answer of the form  ej = (0,0,...,o...,0) and positin
j, I       want to have 1.



More information about the SciPy-user mailing list