Intro to Matrices Reference: “3D Math Primer for Graphics and Game Development”, chapter 7.1.

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Section 13-4: Matrix Multiplication
Intro to Matrices Reference: “3D Math Primer for Graphics and Game Development”, chapter 4.
Applied Informatics Štefan BEREŽNÝ
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
3_3 An Useful Overview of Matrix Algebra
Maths for Computer Graphics
Matrix Definition A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by: The matrix is an ordered.
Matrices The Basics Vocabulary and basic concepts.
Reference: “3D Math Primer for Graphics and Game Development”, chapter 4 INTRO TO MATRICES.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
4.7 Identity and Inverse Matrices. What is an identity? In math the identity is the number you multiply by to have equivalent numbers. For multiplication.
Week 4 - Monday.  What did we talk about last time?  Vectors.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
4.2 Operations with Matrices Scalar multiplication.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices n New stuff Homogenous co-ordinates 3D transformations as matrices.
MATRICES Adapted from presentation found on the internet. Thank you to the creator of the original presentation!
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
F UNDAMENTALS OF E NGINEERING A NALYSIS Eng. Hassan S. Migdadi Inverse of Matrix. Gauss-Jordan Elimination Part 1.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Matrices. A matrix, A, is a rectangular collection of numbers. A matrix with “m” rows and “n” columns is said to have order m x n. Each entry, or element,
Inverse & Identity Matrices
Unit 3: Matrices.
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.
Matrix Arithmetic. A matrix M is an array of cell entries (m row,column ) and it must have rectangular dimensions (Rows x Columns). Example: 3x x.
Linear Algebra 1.Basic concepts 2.Matrix operations.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
4.4 Identify and Inverse Matrices Algebra 2. Learning Target I can find and use inverse matrix.
Slide Copyright © 2009 Pearson Education, Inc. 7.3 Matrices.
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
Matrix Operations.
Warm Up Perform the indicated operations. If the matrix does not exist, write impossible
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
3.6 Multiplying Matrices Homework 3-17odd and odd.
CS 450: COMPUTER GRAPHICS TRANSFORMATIONS SPRING 2015 DR. MICHAEL J. REALE.
Chapter 1 Section 1.6 Algebraic Properties of Matrix Operations.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
4-3 Matrix Multiplication Objective: To multiply a matrix by a scalar multiple.
Designed by Victor Help you improve MATRICES Let Maths take you Further… Know how to write a Matrix, Know what is Order of Matrices,
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Reference: “3D Math Primer for Graphics and Game Development”, chapter 4 INTRO TO MATRICES.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
College Algebra Chapter 6 Matrices and Determinants and Applications
MTH108 Business Math I Lecture 20.
13.4 Product of Two Matrices
12-1 Organizing Data Using Matrices
Linear Algebra review (optional)
Chapter 7 Matrix Mathematics
1.5 Matricies.
Linear Algebraic Equations and Matrices
Matrix Operations Add and Subtract Matrices Multiply Matrices
Multiplying Matrices.
7.3 Matrices.
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
2.2 Introduction to Matrices
Multiplying Matrices.
Linear Algebra review (optional)
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
Multiplying Matrices.
Multiplying Matrices.
Matrix Multiplication Sec. 4.2
Introduction to Matrices
Multiplying Matrices.
Presentation transcript:

Intro to Matrices Reference: “3D Math Primer for Graphics and Game Development”, chapter 7.1

Matrices vs. Vectors A vector is a group of scalars. A matrix is a group of vectors. Two ways of looking at this: Three Vector2’s – Column-Major Two Vector3’s – Row-Major Used in Right-handed systems Used in Left-handed systems (and in the book)

Dimensions of a Matrix (7.1.1) Take this matrix: The dimension of M is: 2x3 (2 rows, 3 columns – always put the row number first – even in left-handed systems) The elements are referred to like this: – 0 is m00 4 is m01 9 is m02 – -1 is m10 2 is m11 5 is m12 – Note: The book uses m11 for 0 (the “index numbers” are 1-based; I use 0- based “index numbers”) –

Square + Identity Matrices (7.1.2) A square matrix has dimensions n x n – In other words, the #rows = #columns – We’ll mainly use 4x4 and 3x3 matrices There are some “Shortcuts” you can take for some square matrices. A special square matrix is the identity matrix – For 3x3… – For 4x4…

Vectors & Matrices (7.1.3) A Vector is really just a special case of matrix: Note: The book uses row-vectors (since the author uses a left-handed system). There… But…it’s also a 3x1 matrix Which is also a 1x3 matrix

Transposition (7.1.4) “Flips” the matrix along the diagonal. Transpose is indicated by using a “T” super- script – This doesn’t mean raise the matrix to the “T” power.

Transposition, cont. Example: The first column of M becomes the first row of. The second column of M becomes the second row of. Said another way: Another observation: if the dimension of M is n x m, the dimension of MT is m x n.

Matrix-scalar multiplication (7.1.5)

Matrix-Matrix Multiplication (7.1.6) First, you must decide if you can even do the multiplication: – The first matrix must have #cols = the second matrix’s #rows. – Said mathematically, The result (C) will be a matrix of dimension m x p. NOTE: Matrix multiplication is NOT commutative. Must be the same. Dimension of result.

Matrix-Matrix Multiplication, cont. Example: Q: Can we do A * B? A: “2x3” times “3x4”. Yes A’s #cols=B’s #rows Q: What is the dimensions of the result? A: “2x4” The of value of the element in the R’th row and the C’th column is:

Matrix-Matrix Multiplication, cont.

Example, with a vector this time: Q: Can we do A * v? A: “2x3” times “3x1”. Yes A’s #cols=B’s #rows Q: What is the dimensions of the result? A: “2x1”

Matrix-Matrix Multiplication, cont. Note: I’ll soon use a term for this operation: “v was TRANSFORMED into c by A” “A is a TRANSFORMATION matrix”

Identity Matrix Multiplication Multiplying a matrix A by an Identity matrix is equivalent to A (try it!). Multiplying a vector v by an Identity matrix is equivalent to v. Note: I can be whatever (square) dimension is appropriate for the given vector/matrix. Compare this to the scalar multiplicative identity (1.0): – 5 * 1.0 = 5 – 1.0 * -4.7 = -4.7