14
Fo DA Linear Algebra Review # I : L I ° Vectors , Matrices , Addition , Multiplication

Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

Fo DA Linear Algebra•

Review # I :

L I° Vectors

,Matrices

,

Addition, Multiplication

Page 2: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

Vectors & Matrices

vector N = ( ya ,vz

, . . .

,ud ) e- IRA

aScalar

n data points✓ = ( VEG

.ve

. . . ud ]

d dimension rowattributes column vector vector

matrix nxd matrix A EIR'd

N rows a , care ,. . . an C- Rfd

* eaiai . - is

Page 3: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

vectorv =

fizzy EIR"

mat a ,=(3 ,

-7,

2) HR"

A- - C ?-

I⇒ e IR" '

transpose i change roll if rows

& columns

At --f÷÷s]eR"

Page 4: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

a6.5 ,7.5 )

i. 5- 112?

Xz byA

"

""

"

as :* .⇒

-÷. !#¥:S.

A- Ea.

'

ER"

Page 5: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

Lineations3 x

,

- 7×2 t 2×3 = -2

II}:} i.§ .

-i ×

.

+ 2x.

-5×3 = 6

Ax = b

A = f ?I.E) HR" '

b = [f) ER" '

x= ER'

Page 6: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

Addition element - wise

X = ( x.

,X

, ,. . .

xd ) y = ( y , , 42 ,. . - ya )

×, geld?! $ lmathbbcr)^dd$

Z = Xx y = ( x, -1g ,

,Xz -192

,. . .

,Xd -1yd ) END

^

ga..

- ¥?Z - * s

¥*jR ?

Page 7: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

A,

B e IRnxd

C = At B ⇒ Ci;

- Ais + Be ;

A ⇒ . EI:De. a .IE#:::iT

Page 8: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

MultiplicationHEIR

"dBe 112dam

C = AB EIRn 'm

Cii . E÷ainEf¥!!q:* ''

#re#coliA#wBA

, B. ( matrices AB legal maybe BA not legalnative CAB) c = A CBC ) ( unless a- m )

distributive ACB = ABT AC

not commutative AB # BA

Page 9: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

G - fi, ⇒ tip

"

B = f ? I ? ] ER 'D

OBE:::::3( GB )

, ,

= I . 2 -13.4

2 t 12 = 14

-

B = a A Ai Be Rmdx EIR ← scalar

Be ; = a . Ai ; element wise

Page 10: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

vector-veeformottipli.at#inner product and o - terprodoef

X EIR "

y EIR"

column vectors

outer productok if n # m

× . a " "

C- 112mm

Page 11: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

lnnerldotlprod.deX

, g E Rd column vectors

x-y.x.ge 'T:!gJ" Iea. . .

. !4aigieR

output is scalar

associative,

distributive,

commutative

X. g. Z END a EIR

Lax, gtz > = ale , gtz7-akx.pt# ⇒

Page 12: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

DotprodoctI w-

- ( E. I ) Vale , D

airtight.li?sieo:s!Y

*•"'

e " ,

if leastID -

-11*11=1

)o

I

GR?

u'

= Cleo )then245=11TEND)#I

315 Lv, U' D= 2. I t ↳= 2

Page 13: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

Matrix - vector Multiplication-

A EIR" ''d

× ⇐ Rd

y -- Ax C- 112"

A

I aioiizd

' axesx.

E:÷÷÷t*

Page 14: Fo DA Algebrajeffp/teaching/FoDA/Lnotes/FoDA-L8.pdf · vector-veeformottipli.at# inner product and o-terprodoef X EIR y EIR column vectors outer product ok if n # m ×. a " " C-112mm

^ N( Vectors )•

× If ?k

how bis .

I vector v - Cv,

,ve

,. . .

,Vd ) C- Rd↳?µq

, ,qµ,q , ,,u,,u,,...µ#,µq

Hv - xh --E¥di-x = Euclidean distanceftp..ee: .

. iii.'

si:" ⇒

I i = I

Kubo - III. a ] Hit