1. Home
  2. Data Science
  3. NumPy
  4. What does the np.linalg.inv() function do in NumPy?

Added 25 Feb 2024

What does the np.linalg.inv() function do in NumPy?

  1. Computes the determinant of a matrix
  2. Computes the inverse of a matrix Correct answer
  3. Computes the eigenvalues of a matrix
  4. Computes the singular value decomposition (SVD) of a matrix

Correct answer

B. Computes the inverse of a matrix

16 views

MCQSEXAM

Explanation

The np.linalg.inv() function calculates the inverse of a square matrix. It is commonly used in linear algebra and solving systems of linear equations.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs