Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Linear Algebra Operations | Getting into NumPy Basics
Getting into NumPy Basics
course content

Kursusindhold

Getting into NumPy Basics

book
Linear Algebra Operations

NumPy offers a plethora of functions for executing linear algebra operations on arrays, including matrix multiplication, transposition, inversion, and decomposition. Key functions include:

  • dot(): Computes the dot product of two arrays;
  • transpose(): Transposes an array;
  • inv(): Computes the inverse of a matrix;
  • linalg.svd(): Performs the singular value decomposition of a matrix;
  • linalg.eig(): Determines the eigenvalues and eigenvectors of a matrix.
Opgave

Swipe to start coding

  1. Compute the dot product of the arrays.
  2. Transpose the first array.
  3. Compute the inverse of the second array.

Løsning

Mark tasks as Completed
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
Vi beklager, at noget gik galt. Hvad skete der?
some-alt