nerdexam
Huawei

H13-311_V3.5 · Question #33

What are the conditions for m row n column matrix A and p row q column matrix B to be multiplied?

The correct answer is B. n=p. For matrix multiplication A x B, the number of columns in A must equal the number of rows in B, making n = p the required condition. This is because each entry in the product is computed as a dot product between a row of A (which has n elements) and a column of B (which has p…

Machine Learning Basics

Question

What are the conditions for m row n column matrix A and p row q column matrix B to be multiplied?

Options

  • Am=p. n=q
  • Bn=p
  • Cm=n
  • Dp=q

How the community answered

(59 responses)
  • A
    3% (2)
  • B
    78% (46)
  • C
    8% (5)
  • D
    10% (6)

Explanation

For matrix multiplication A x B, the number of columns in A must equal the number of rows in B, making n = p the required condition. This is because each entry in the product is computed as a dot product between a row of A (which has n elements) and a column of B (which has p elements), so those lengths must match.

Option A is wrong because requiring m = p and n = q would mean both matrices have the same dimensions, which is far too restrictive and unrelated to why multiplication works. Option C is wrong because m = n simply means A is a square matrix, which says nothing about compatibility with B. Option D is wrong because p = q means B is square, which is similarly irrelevant to whether the multiplication can proceed.

Memory tip: Write out the dimensions side by side as (m x n)(p x q) and think of the two middle numbers - the "inner" pair (n and p) must match, and the outer pair (m and q) gives you the dimensions of the result.

Topics

#matrix multiplication#linear algebra#matrix dimensions#operation prerequisites

Community Discussion

No community discussion yet for this question.

Full H13-311_V3.5 Practice