MCQs>IT & Programming>Python>Suppose you have a variale named vector of type np.array with 10,000 elements. How can you turn vector into a variable named matrix with dimensions 100x100?
Python MCQs
Suppose you have a variale named vector of type np.array with 10,000 elements. How can you turn vector into a variable named matrix with dimensions 100x100?
Answer
Correct Answer: Matrix = vector.reshape(100, 100)
Explanation:
Note: This Question is unanswered, help us to find answer for this one