
- Different sensors can report different apparent positions for the same object because each sensor is mounted at a different place and orientation. For instance, a left-side sensor might report a pedestrian appearing to the right, while a right-side sensor reports the pedestrian to the left — the pedestrian is actually ahead.
- The vehicle knows each sensor’s pose (position and orientation). Using transformation matrices, the vehicle converts each sensor’s measurements into a common coordinate frame (the vehicle frame) and then combines them into a unified map.
2×2 or 3×3. Two square matrices of the same size can be multiplied together. Matrix multiplication is based on dot products:
- To compute one element of the product matrix, take a row from the first matrix and a column from the second matrix, multiply corresponding elements pairwise, and sum the results.
- Example scalar calculation: multiply
5 × 3and2 × 2then sum to get15 + 4 = 19. That sum is one element of the resulting matrix.

3×3 example, you compute:
- First row of A with first column of B (dot product)
- First row of A with second column of B
- First row of A with third column of B
- Then repeat for the second and third rows of A

3×3 multiplication as well.

- If
Ais anm × nmatrix andBis ann × pmatrix, then the productA × Bis defined and has shapem × p. - In plain terms: the number of columns of the first matrix must equal the number of rows of the second matrix.
Matrix multiplication is only possible when the first matrix’s column count matches the second matrix’s row count. The resulting matrix has the number of rows of the first matrix and the number of columns of the second matrix.

| First matrix (A) | Second matrix (B) | Multiplication possible? | Result shape |
|---|---|---|---|
2×2 | 3×2 | No — 2 columns ≠ 3 rows | N/A |
2×3 | 3×2 | Yes | 2×2 |
3×3 | 3×3 | Yes | 3×3 |
3×2 | 2×4 | Yes | 3×4 |
- If A has 3 columns and B has 2 rows, multiplication A×B is not defined because the inner dimensions don’t match.
- If A has 3 columns and B has 3 rows, A×B is defined.
A common pitfall: matrix multiplication is not commutative. If
A × B is defined, B × A might be undefined or yield a different-shaped/result matrix. Always check shapes before multiplying.- Each sensor produces a detection matrix (rows = objects, columns = properties).
- Each sensor has a corresponding transformation matrix that maps sensor coordinates into the vehicle coordinate frame.
- Convert a sensor’s detections into the vehicle frame by multiplying with its transformation matrix (shape must align).
- After transforming each sensor’s rows into the vehicle frame, concatenate or otherwise aggregate the rows to form the vehicle’s perception matrix.
- This combined, transformed matrix becomes the input to higher-level algorithms such as tracking, object classification, and path planning.
- Linear Algebra — Matrix Multiplication (Khan Academy)
- Matrix Multiplication — Wikipedia
- Sensor Fusion in Autonomous Vehicles — Overview