Neuron 101

Math foundations / Matrix transformation

Türkçe

Plate5

Unit 1 · Topic 5 of 11

Matrix transformation

Medium, 7 min, 6 steps

ij
Keyboard: left and right arrows change the step, space plays and pauses.

Step 1 of 6 Shape

A shape and two unit arrows

On the plane there is a small house and two unit arrows: i = (1, 0) and j = (0, 1). Where these two go decides what the matrix does.

Open in Colab
  1. M = [[1.0, 0.6],
  2. [0.0, 1.0]]
  3. ev = [(0, 0), (1, 0), (1, 0.7),
  4. (0.5, 1.1), (0, 0.7)]
  5. yeni = [(M[0][0] * x + M[0][1] * y,
  6. M[1][0] * x + M[1][1] * y)
  7. for x, y in ev]
  8. det = (M[0][0] * M[1][1]
  9. - M[0][1] * M[1][0])
a
1
b
0.60
c
0
d
1
det
1