Download ENGG2013 Lecture 6 - Chinese University of Hong Kong

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
ENGG2013
Unit 6 Matrix in action
Jan, 2011.
Linear transformation
• A.k.a. Linear mapping, linear function.
• A way to map an m-dimensional object to an
n-dimensional object.
2-D to 3-D transformation
3-D to 2-D transformation
kshum
ENGG2013
2
• The term “matrix” was coined
by James Joseph Sylvester
(1814~1897) in 1850.
http://en.wikipedia.org/wiki/Arthur_Cayley
http://en.wikipedia.org/wiki/James_Joseph_Sylvester
Historical note
kshum
3
• Matrix algebra was developed
by Arthur Cayley (1821~1895)
– Memoir on the theory of matrices (1858)
ENGG2013
Today’s objective
Why do we define
matrix multiplication
in such a strange way?
kshum
ENGG2013
4
Matrix as action
• Matrix-vector product is a function from a
vector space to another vector space.
v
kshum
Multiply by M
ENGG2013
Mv
5
Review of function in mathematics
• A function consists of
– Domain: a set
– Range: another set
– An association between the elements.
Range
Domain
f(x)
x
kshum
ENGG2013
6
Example
Domain
The function L
L(Boy 1) = Girl A
L(Boy 2) = Girl C,
Etc.
Range
Boy 1
Girl A
Boy 2
Girl B
Boy 3
Girl C
Boy 4
Girl D
Boy 5
Girl E
“L” stands for “love”
kshum
ENGG2013
7
An ideal case
Domain
kshum
One-to-one function
a.k.a. injective function
Range
Boy 1
Girl A
Boy 2
Girl B
Boy 3
Girl C
Boy 4
Girl D
Boy 5
Girl E
ENGG2013
8
Question
Domain
kshum
How many possible functions
can we make?
How many of them are
one-to-one?
Range
Boy 1
Girl A
Boy 2
Girl B
Boy 3
Girl C
Boy 4
Girl D
Boy 5
Girl E
ENGG2013
9
Example 1 Reflection
• Domain:
• Range:
• Define
kshum
ENGG2013
10
Example 2 Rotation by 90 degrees
• Domain:
• Range:
• Define
kshum
ENGG2013
11
Example 3 Projection
• Domain:
• Range:
• Define
No. of
input varaibles
No. of output
variables
kshum
ENGG2013
12
Example 4
• Domain:
• Range:
• Define a function
kshum
ENGG2013
13
Cascading two functions
Example:
multiply by

3
Rotate 90 degrees and scale up by a factor of 3.
kshum
ENGG2013
14
Function composition
• Can we compose the functions in example 3
and example 4 and do the computation in one
step?
multiply by
multiply by
multiply by
?
kshum
ENGG2013
15
More generally…
• Can you repeat the same thing for any two
matrices
and
?
multiply by
multiply by
multiply by
?
kshum
ENGG2013
16
Even more generally
multiply by B
u
multiply by A
w
v
A is m x n,
B is n x p
multiply by
u
w
?
What goes in here
is the matrix product A B
kshum
ENGG2013
You can find
the definition
of two matrices
in any textbook
on linear algebra,
or from the web.
17
Main points
• Matrix-vector multiplication is an action.
– It is useful in computer graphics and geometry.
• “Matrix time matrix” is the same as function
composition.
• The definition of the product of two matrices
follows naturally from this viewpoint.
kshum
ENGG2013
18
Related documents