Computer Science I / Matrices and Matrix Operations
Practice question · Sort into groups

Sort each matrix operation by whether the two matrices must have identical shape.

Groups: Needs identical shape · Does not need identical shape

Hints
  1. Entry-by-entry operations need matching shapes.
  2. Multiplication only needs inner dimensions to agree; a scalar multiple involves just one matrix.
Show the answer

Needs identical shape: Addition A + B, Subtraction A - B

Does not need identical shape: Multiplication A times B, Scalar multiple cA

Why

Addition and subtraction act entry by entry, so shapes must match exactly. Multiplication needs only columns-of-A = rows-of-B, and a scalar multiple involves a single matrix, neither needs identical shapes.

Read the lesson: Matrices and Matrix Operations →

Practise Matrices and Matrix Operations

The app has 4 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Matrices and Matrix Operations