CS32310 MATRICES 1. Vector vs Matrix transformation formulae Geometric reasoning allowed us to derive vector expressions for the various transformation.

Slides:



Advertisements
Similar presentations
Ch 7.7: Fundamental Matrices
Advertisements

Chapter 2 Simultaneous Linear Equations
Chris Hall Aerospace and Ocean Engineering
Section 4.2 – Multiplying Matrices Day 2
Maths for Computer Graphics
2D Geometric Transformations
Chapter 5 Orthogonality
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
Ch 7.9: Nonhomogeneous Linear Systems
Multivariable Control Systems Ali Karimpour Assistant Professor Ferdowsi University of Mashhad.
2D/3D Geometric Transformations CS485/685 Computer Vision Dr. George Bebis.
Matrix Operations. Matrix Notation Example Equality of Matrices.
Lec 21: Fundamental Matrix
Computer Graphics (Fall 2005) COMS 4160, Lecture 2: Review of Basic Math
Lesson 4 Review of Vectors and Matrices. Vectors A vector is normally expressed as or in terms of unit vectors likewise.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Table of Contents Solving Linear Systems - Elementary Row Operations A linear system of equations can be solved in a new way by using an augmented matrix.
Matrix Algebra HGEN619 class Heuristic You already know a lot of it Economical and aesthetic Great for statistics.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka Virginia de Sa (UCSD) Cogsci 108F Linear.
Section 6.6 Orthogonal Matrices.
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 2: Review of Basic Math
Matrix Solution of Linear Systems The Gauss-Jordan Method Special Systems.
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Systems and Matrices (Chapter5)
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
ECON 1150 Matrix Operations Special Matrices
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Timing Trials An investigation arising out of the Assignment CS32310 – Nov 2013 H Holstein 1.
4 4.2 © 2012 Pearson Education, Inc. Vector Spaces NULL SPACES, COLUMN SPACES, AND LINEAR TRANSFORMATIONS.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Linear Algebra 1.Basic concepts 2.Matrix operations.
Stefanos Zafeiriou Machine Learning(395) Course 395: Machine Learning – Math. Intro. Brief Intro to Matrices, Vectors and Derivatives: Equality: Two matrices.
5 5.2 © 2012 Pearson Education, Inc. Eigenvalues and Eigenvectors THE CHARACTERISTIC EQUATION.
8.4 Matrices of General Linear Transformations. V and W are n and m dimensional vector space and B and B ’ are bases for V and W. then for x in V, the.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
Section 9-1 An Introduction to Matrices Objective: To perform scalar multiplication on a matrix. To solve matrices for variables. To solve problems using.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
Matrix Multiplication The Introduction. Look at the matrix sizes.
Section 4.3 – Multiplying Matrices. MATRIX MULTIPLICATION 1. The order makes a difference…AB is different from BA. 2. The number of columns in first matrix.
Instructor: Mircea Nicolescu Lecture 9
Notes Over 4.2 Finding the Product of Two Matrices Find the product. If it is not defined, state the reason. To multiply matrices, the number of columns.
Do Now: Perform the indicated operation. 1.). Algebra II Elements 11.1: Matrix Operations HW: HW: p.590 (16-36 even, 37, 44, 46)
Matrices. Matrix - a rectangular array of variables or constants in horizontal rows and vertical columns enclosed in brackets. Element - each value in.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
College Algebra Chapter 6 Matrices and Determinants and Applications
CSE 167 [Win 17], Lecture 2: Review of Basic Math Ravi Ramamoorthi
Linear Algebra review (optional)
7.7 Determinants. Cramer’s Rule
Chapter 7 Matrix Mathematics
3D Geometric Transformations
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Introduction to Computer Graphics CS 445 / 645
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Transformations.
CSCI N207 Data Analysis Using Spreadsheet
RECORD. RECORD COLLABORATE: Discuss: Is the statement below correct? Try a 2x2 example.
Matrices.
Linear Algebra Lecture 21.
Basics of Linear Algebra
Linear Algebra review (optional)
Linear Algebra A gentle introduction
Linear Algebra Lecture 11.
3.5 Perform Basic Matrix Operations Algebra II.
NULL SPACES, COLUMN SPACES, AND LINEAR TRANSFORMATIONS
Presentation transcript:

CS32310 MATRICES 1

Vector vs Matrix transformation formulae Geometric reasoning allowed us to derive vector expressions for the various transformation formulae For efficiency reasons, the transformation formulae are usually executed in matrix form 2

Example comparison Consider the scaling formula, for scaling the component of vector r in the ŝ direction: What is the operation count for executing this formula? 3

4

The operation count (mults,adds) = (7,6) is for the transformation of one vector. 3 sequential scalings (in directions ŝ 1, ŝ 2, ŝ 3 for factors α 1, α 2, α 3 ) for 1000 points Cost: 3000(7,6) = operations. Slightly reduced cost by evaluating (α-1)ŝ once for each scaling operations (cost: 3(3,1)), and reusing these results of every point. Resulting cost: 3(3,1) (6,5) = operations 5

Derivation of Matrix form Take x, y, z components of the vector scaling formula This leads to (with ) 6

Derivation of Matrix form Regrouping the component formulae for leads to (with ) 7

Derivation of Matrix form Recognise the equivalent matrix formulation of (with ) 8

Derivation of Matrix form 9

10

Op count of Matrix form Cost of setting up the matrix – (10,3) for the scaling matrix Cost of doing one matrix multiplication A r – 3(3,2) = (9,6) – 3 elements of a 3 x 1 matrix to be computed – Same operations as for the written out form 11

Op count of Matrix form Consider carrying out 3 successive scaling operations in tandem 12

13

Op count of Matrix form No gain over vector approach – not this way! 14

Op count of Matrix form Consider carrying out 3 successive scaling operations by successive substitution and concatenation: 15

16

Op count of Matrix form 17

Op count of Matrix form 18 BacBack to 35

Op count of Matrix form Each of the formulae is linear and homogeneous in the vector r Each follows the pattern can be expressed in matrix form 19

Op count of Matrix form or Details of the operation (in A) are separated from the details of the point being transformed (operand r) Abstraction! Concatenation possible 20

Matrix Product Motivation for product formula Let Then 21

Matrix Product Thus where 22

Matrix Product Thus we can write C = BA where Inner product of row i and column j. Op count: (3,2) in this case. 23

24

Matrix Product In general, if C = BA B and A must satisfy a compatibility constraint: No of columns in first factor (row length) = No of rows in second factor (col length) 25

26

Matrix Algebra Vectors and Matrices are branches of Linear Algebra 27

28

29

30

Matrix Transposition 31 See

Matrix Transposition Examples 32

Matrix block multiplication 33

Matrix block multiplication 34

Linear Mapping property 35 Table 5

Derivation of Matrix form II 36

37

38

39

Summary 40