Numpy Exercise (Python) [closed]

1

Good morning, I have to do the following exercise with python using the numpy package (I do not have loops or anything like that):

Construct an array in which the value of the elements equals the sum of its row plus its column.

Is there a Numpy command that can do this?

Greetings

    
asked by Miguel Gutiérrez de Antón 20.09.2017 в 10:40
source

1 answer

1

Using np.matrix you would have the matrix. As it is a more mathematical than technical exercise, it is going to touch you to solve it first and then model it. I recommend this web for when you create the matrix

    
answered by 20.09.2017 в 11:43