En efecto , siendo y la matriz a analizar , en j guardo los indices que corresponden a los elementos que son cero .
j=numpy.array(numpy.where(y == 0)) Problema resuelto . Gracias por la ayuda . 2011/3/29 José Sabater Montes <[email protected]> > Hola, > > ¿Es esto? > indices = numpy.where(matriz == 0) > > Un saludo, > > El 29/03/2011, a las 17:28, Abraham Zamudio escribió: > > Hola Gente, >> >> Tengo el siguiente problema , >> >> Tengo una matriz , de la cual ya saco los indices de los elementos que no >> son cero (numpy.nonzero) , ahora quiero quedarme con los indices de los >> elementos que son cero .... alguna idea ???? >> >> -- >> Abraham Zamudio Ch. >> >> _______________________________________________ >> Python-es mailing list >> [email protected] >> http://mail.python.org/mailman/listinfo/python-es >> FAQ: http://python-es-faq.wikidot.com/ >> > > _______________________________________________ > Python-es mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-es > FAQ: http://python-es-faq.wikidot.com/ > -- Abraham Zamudio Ch.
_______________________________________________ Python-es mailing list [email protected] http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/
