Humanoid Robotics Compact Course on Linear Algebra Maren Bennewitz - - PowerPoint PPT Presentation

humanoid robotics compact course on linear algebra
SMART_READER_LITE
LIVE PREVIEW

Humanoid Robotics Compact Course on Linear Algebra Maren Bennewitz - - PowerPoint PPT Presentation

Humanoid Robotics Compact Course on Linear Algebra Maren Bennewitz Vectors Arrays of numbers Vectors represent a point in a n dimensional space Vectors: Scalar Product Scalar-vector product Changes the length of the


slide-1
SLIDE 1

Humanoid Robotics Compact Course on Linear Algebra

Maren Bennewitz

slide-2
SLIDE 2

Vectors

§ Arrays of numbers § Vectors represent a point in a n dimensional space

slide-3
SLIDE 3

Vectors: Scalar Product

§ Scalar-vector product § Changes the length of the vector, but not its direction

slide-4
SLIDE 4

Vectors: Sum

§ Sum of vectors (is commutative) § Can be visualized as “chaining” the vectors

slide-5
SLIDE 5

Vectors: Dot Product

§ Inner product of vectors (yields a scalar) § If , the two vectors are orthogonal

slide-6
SLIDE 6

Vectors: Linear (In)Dependence

§ A vector is linearly dependent from if

slide-7
SLIDE 7

Vectors: Linear (In)Dependence

§ A vector is linearly dependent from if

slide-8
SLIDE 8

Vectors: Linear (In)Dependence

§ A vector is linearly dependent from if § If there exist no such that then is independent from

slide-9
SLIDE 9

Matrices

§ A matrix is written as a table of values § 1st index refers to the row § 2nd index refers to the column

columns rows

slide-10
SLIDE 10

Matrices as Collections of Vectors

§ Column vectors

slide-11
SLIDE 11

Matrices as Collections of Vectors

§ Row vectors

slide-12
SLIDE 12

Important Matrix Operations

§ Multiplication by a scalar § Sum (commutative, associative) § Multiplication by a vector § Product (not commutative) § Inversion (square, full rank) § Transposition

slide-13
SLIDE 13

Scalar Multiplication & Sum

§ In the scalar multiplication, every element of the vector or matrix is multiplied with the scalar § The sum of two matrices is a matrix consisting of the pair-wise sums of the individual entries

slide-14
SLIDE 14

Matrix Vector Product

§ The ith component of is the dot product . § The vector is linearly dependent from with coefficients

column vectors row vectors

slide-15
SLIDE 15

Matrix Matrix Product

§ Can be defined through

§ the dot product of row and column vectors § the linear combination of the columns of scaled by the coefficients of the columns of

slide-16
SLIDE 16

Matrix Matrix Product

§ If we consider the second interpretation, we see that the columns of are the “global transformations” of the columns

  • f through

§ All the interpretations made for the matrix vector product hold

slide-17
SLIDE 17

Inverse

§ If is a square matrix of full rank, then there is a unique matrix such that holds § The ith row of and the jth column of are

§ orthogonal (if i ≠ j) § or their dot product is 1 (if i = j)

slide-18
SLIDE 18

Matrix Inversion

§ The ith column of can be found by solving the following linear system:

This is the ith column

  • f the identity matrix
slide-19
SLIDE 19

Linear Systems (1)

§ A set of linear equations § Solvable by Gaussian elimination (as taught in school) § Many efficient solvers exit, e.g., conjugate gradients, sparse Cholesky decomposition

slide-20
SLIDE 20

Orthonormal Matrix

§ A matrix is orthonormal iff its column (row) vectors represent an orthonormal basis § The transpose is the inverse

slide-21
SLIDE 21

Rotation Matrix (Orthonormal)

§ 2D Rotations: § 3D Rotations along the main axes § The inverse is the transpose (efficient) § IMPORTANT: Rotations are not commutative!