0

A is a matrix of size nx2n ,and I'm trying to write a Python code that will return the list v without using a for loop using numpy functions.

1 Answers1

1

li = [A[i][2*i] + A[i][2*i + 1] for i in range(n)]

ab123
  • 2,521