Module #9: Matrices Rosen 5 th ed., §2.7 Now we are moving on to matrices, section 7.

Slides:



Advertisements
Similar presentations
4.1 Introduction to Matrices
Advertisements

CSNB143 – Discrete Structure
Chapter Matrices Matrix Arithmetic
Matrix Definition: An array of numbers in m rows and n colums is called an mxn matrix A square matrix of order n, is an (nxn) matrix.
Mathematics. Matrices and Determinants-1 Session.
MF-852 Financial Econometrics
Maths for Computer Graphics
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
1 Matrices Rosen 6 th ed., §3.8 2 Matrices A matrix is a rectangular array of numbers.A matrix is a rectangular array of numbers. An m  n (“m by n”)
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Matrices MSU CSE 260.
Lecture 7: Matrix-Vector Product; Matrix of a Linear Transformation; Matrix-Matrix Product Sections 2.1, 2.2.1,
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
Compiled By Raj G. Tiwari
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review.
ECON 1150 Matrix Operations Special Matrices
 Row and Reduced Row Echelon  Elementary Matrices.
2015 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 행렬 (Matrices)
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,
8.1 Matrices & Systems of Equations
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Lecture 7 Matrices CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/21 Module.
Matrices Matrices A matrix (say MAY-trix) is a rectan- gular array of objects (usually numbers). An m  n (“m by n”) matrix has exactly m horizontal.
2009/9 1 Matrices(§3.8)  A matrix is a rectangular array of objects (usually numbers).  An m  n (“m by n”) matrix has exactly m horizontal rows, and.
Discrete Mathematics 1 Kemal Akkaya DISCRETE MATHEMATICS Lecture 16 Dr. Kemal Akkaya Department of Computer Science.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
Matrices Section 2.6. Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices.
CSNB143 – Discrete Structure Topic 3 – Matrices. Learning Outcomes Students should understand all matrices operations. Students should be able to differentiate.
Module #9 – Number Theory 1/5/ Algorithms, The Integers and Matrices.
Greatest Common Divisors & Least Common Multiples  Definition 4 Let a and b be integers, not both zero. The largest integer d such that d|a and d|b is.
Matrices and Determinants
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
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.
Section 2.4. Section Summary  Sequences. o Examples: Geometric Progression, Arithmetic Progression  Recurrence Relations o Example: Fibonacci Sequence.
MATRICES. Introduction Matrix algebra has several uses in economics as well as other fields of study. One important application of Matrices is that it.
Module #9 – Number Theory 6/11/20161 Chapter 3 Algorithms, Integers and Matrices.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
CS 285- Discrete Mathematics Lecture 11. Section 3.8 Matrices Introduction Matrix Arithmetic Transposes and Power of Matrices Zero – One Matrices Boolean.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
MTH108 Business Math I Lecture 20.
CSE 504 Discrete Mathematics & Foundations of Computer Science
Discrete Structures – CNS2300
Rosen 5th ed., §2.7 ~18 slides, ~1 lecture
Sequences and Summations
MATRICES MATRIX OPERATIONS.
2.2 Introduction to Matrices
Matrix Algebra.
[MATRICES ].
Discrete Mathematics and its Applications
Rosen 5th ed., §2.7 ~18 slides, ~1 lecture
[MATRICES ].
Applied Discrete Mathematics Week 4: Functions
Presentation transcript:

Module #9: Matrices Rosen 5 th ed., §2.7 Now we are moving on to matrices, section 7.

§2.7 Matrices A matrix is a rectangular array of objects (usually numbers). An m  n (“m by n”) matrix has exactly m horizontal rows, and n vertical columns. Plural of matrix = matrices An n  n matrix is called a square matrix, whose order is n. a 3  2 matrix Most widely used form of a matrix is a two-dimensional matrix, whose shape is a rectangle. Of course, a matrix can have 3 or more dimensions.

Applications of Matrices Tons of applications, including: Solving systems of linear equations Computer Graphics, Image Processing Models within Computational Science & Engineering Many, many more…

Matrix Equality Two matrices A and B are equal iff they have the same number of rows, the same number of columns, and all corresponding elements are equal.

Row and Column Order The rows in a matrix are usually indexed 1 to m from top to bottom. The columns are usually indexed 1 to n from left to right. Elements are indexed by row, then column.

Matrices as Functions An m  n matrix A = [a i,j ] of members of a set S can be encoded as a function f A : ℕ  ℕ →S, such that for 1  i  m, 1  j  n, f A (i, j) = a i,j By extending the domain over which f A is defined, various types of infinite and/or multidimensional matrices can be obtained.

Matrix Sums The sum A+B of two matrices A, B (which must have the same number of rows, and the same number of columns) is the matrix (also with the same shape) given by adding corresponding elements. A+B = [a i,j +b i,j ]

Matrix Products For an m  k matrix A and a k  n matrix B, the product AB is the m  n matrix: I.e., element (i,j) of AB is given by the vector dot product of the ith row of A and the jth column of B (considered as vectors). Note: Matrix multiplication is not commutative!

Matrix Product Example An example matrix multiplication to practice in class:

Identity Matrices The identity matrix of order n, I n, is the order-n matrix with 1’s along the upper- left to lower-right diagonal and 0’s everywhere else.

Matrix Inverses For some (but not all) square matrices A, there exists a unique multiplicative inverse A -1 of A, a matrix such that A -1 A = I n. If the inverse exists, it is unique, and A -1 A = AA -1. We won’t go into the algorithms for matrix inversion...

Matrix Multiplication Algorithm procedure matmul(matrices A: m  k, B: k  n) for i := 1 to m for j := 1 to n begin c ij := 0 for q := 1 to k c ij := c ij + a iq b qj end {C=[c ij ] is the product of A and B} What’s the  of its time complexity?  (m)·  (n)·(  (1)+  (k) ·  (1)) Answer:  (mnk)

Powers of Matrices If A is an n  n square matrix and p  0, then: A p  AAA···A (A 0  I n ) Example: p times

If A=[a ij ] is an m  n matrix, the transpose of A (often written A t or A T ) is the n  m matrix given by A t = B = [b ij ] = [a ji ] (1  i  n,1  j  m) Matrix Transposition Flip across diagonal

Symmetric Matrices A square matrix A is symmetric iff A=A t. I.e.,  i,j  n: a ij = a ji. Which is symmetric?

Zero-One Matrices Useful for representing other structures. –E.g., relations, directed graphs (later in course) All elements of a zero-one matrix are 0 or 1 –Representing False & True respectively. The meet of A, B (both m  n zero-one matrices): –A  B :  [a ij  b ij ] = [a ij b ij ] The join of A, B: –A  B :  [a ij  b ij ]

Boolean Products Let A=[a ij ] be an m  k zero-one matrix, & let B=[b ij ] be a k  n zero-one matrix, The boolean product of A and B is like normal matrix , but using  instead + in the row-column “vector dot product.” A⊙BA⊙B

Boolean Powers For a square zero-one matrix A, and any k  0, the kth Boolean power of A is simply the Boolean product of k copies of A. A [k]  A ⊙ A ⊙ … ⊙ A k times