Skip to content

AI & ML · Linear Algebra

Matrix operations

464 problems in this skill, each with a solver-verified answer key. Answers are checked the moment you submit — with a hint if you want one and a worked solution afterwards.

What the problems look like

A few statements from this skill. Answers, hints and worked solutions live in the practice session.

  1. Warm-up

    Two gradient matrices from a training step are A=(−14−213−3)A = \begin{pmatrix} -1 & 4 & -2 \\ 1 & 3 & -3 \end{pmatrix} and B=(−4304−1−1)B = \begin{pmatrix} -4 & 3 & 0 \\ 4 & -1 & -1 \end{pmatrix}. Compute their Frobenius inner product ⟨A,B⟩F=tr⁡(ABT)=∑i,jAijBij\langle A, B \rangle_F = \operatorname{tr}(AB^{T}) = \sum_{i,j} A_{ij}B_{ij}.

  2. Warm-up

    Two gradient matrices from a training step are A=(34432−2)A = \begin{pmatrix} 3 & 4 & 4 \\ 3 & 2 & -2 \end{pmatrix} and B=(−1−242−4−3)B = \begin{pmatrix} -1 & -2 & 4 \\ 2 & -4 & -3 \end{pmatrix}. Compute their Frobenius inner product ⟨A,B⟩F=tr⁡(ABT)=∑i,jAijBij\langle A, B \rangle_F = \operatorname{tr}(AB^{T}) = \sum_{i,j} A_{ij}B_{ij}.

  3. Warm-up

    Two gradient matrices from a training step are A=(−2−40−403)A = \begin{pmatrix} -2 & -4 & 0 \\ -4 & 0 & 3 \end{pmatrix} and B=(2223−21)B = \begin{pmatrix} 2 & 2 & 2 \\ 3 & -2 & 1 \end{pmatrix}. Compute their Frobenius inner product ⟨A,B⟩F=tr⁡(ABT)=∑i,jAijBij\langle A, B \rangle_F = \operatorname{tr}(AB^{T}) = \sum_{i,j} A_{ij}B_{ij}.

Problems shown under their original terms: Generated (template, solver-computed).

Practice this free, right now

Unlimited math practice is on the free plan — no card, no trial clock.

See every Linear Algebra skill for ai & ml