vendredi 29 mai 2015

Python NumPy: How to fill a matrix using and equation

I wish to initialise a matrix A, using the equation A_i,j = f(i,j) for some f (It's not important what this is).

How can I do so concisely avoiding a situation where I have two for loops?

Aucun commentaire:

Enregistrer un commentaire