← LibraryProperties of Matrix MultiplicationEngineering · Engineering MathematicsLesson 173/812← PrevNext →
ArticlePublished 7 Aug 2026Updated 9 Aug 202623 min readBy KEVOS®
Skip to content

Engineering/Mathematics/Matrices

Properties of Matrix Multiplication

Matrix multiplication obeys associativity, both distributive laws, the scalar rule and the identity law, but not commutativity and not cancellation. Knowing precisely which rules survive — and proving each one entry-by-entry — is what makes algebraic manipulation of matrix expressions safe.

  • Core level
  • Stream: matrix-algebra
  • Reading time 16 min
  • Ref KVS-ENG-MATH-0041
Taxonomy
Engineering / Mathematics
Prerequisite
Matrix multiplication; the entry formula
Holds
Associativity, distributivity, identity, scalar rule
Fails
Commutativity and cancellation
Order reversal
(AB)t=BtAt, (AB)=BA
Structure
Mnn is a non-commutative ring with identity In

Overview

Once matrix multiplication is defined, the immediate question is which of the familiar rules of arithmetic still apply. The answer is neither "all" nor "none". Associativity, both distributive laws, the interaction with scalars and the behaviour of the zero and identity matrices all carry over intact. Commutativity and the cancellation law do not. There is no way to guess which is which, so every rule has to be stated with its hypotheses and proved.

The proofs share a single template. Matrix equality means equality of corresponding entries, so any claimed identity is reduced to a statement about a scalar, expanded with the entry formula [AB]ij=k[A]ik[B]kj, and then settled using the ordinary arithmetic of . Associativity becomes an exchange in the order of a double summation; distributivity becomes distributivity of complex numbers; the transpose rule becomes an index swap. None of these arguments needs a general array written out with ellipses, and that restraint is what keeps them short enough to check.

Taken together the rules make the set of square matrices of a fixed size into a ring with identity: closed under addition and multiplication, associative, distributive, with a multiplicative identity In and an additive identity O. It is a non-commutative ring, and one with zero divisors — non-zero matrices whose product is zero — which is precisely why cancellation is unavailable. Recognising the structure tells an engineer in advance which algebraic manipulations are legitimate.

The rules governing transposition, conjugation and the inner product are the ones most often misapplied. Conjugation passes through a product unchanged, but transposition and adjunction reverse the order of the factors. That reversal is not a curiosity: it is forced by conformability, since the transpose of an m×p product must be p×m and only the reversed order of the transposed factors has that shape. It reappears everywhere from the chain rule of backpropagation to the transformation of element stiffness matrices.

Definition

Matrix Multiplication and the Zero Matrix

MMZM

For an m×n matrix A: AOn×p=Om×p and Op×mA=Op×n. Multiplying by a zero matrix annihilates, and the subscripts matter — the zero matrices on the two sides of each identity generally have different sizes.

The converse fails badly. AB=O does not imply that A or B is the zero matrix; non-zero matrices with zero product are called zero divisors and they exist for every size n2.

Matrix Multiplication and the Identity Matrix

MMIM

For an m×n matrix A: AIn=A and ImA=A. The identity matrix In has 1 on the diagonal and 0 elsewhere, and this pair of identities is what earns it the name — it plays the role for matrix multiplication that the scalar 1 plays for ordinary multiplication.

The two identity matrices are of different sizes unless A is square. Writing AI=IA=A without subscripts is harmless for square matrices and wrong for rectangular ones.

Distributivity and the Scalar Rule

MMDAA

For A of size m×n, B and C of size n×p, D of size p×s and a scalar α:

  • A(B+C)=AB+AC
  • (B+C)D=BD+CD
  • α(AB)=(αA)B=A(αB)
Both distributive laws must be stated separately, because non-commutativity means neither implies the other.

Distributivity requires B and C to be the same size, since their sum must exist. The scalar may be moved freely into either factor or left outside.

Associativity of Matrix Multiplication

MMA

For A of size m×n, B of size n×p and D of size p×s: A(BD)=(AB)D. Both groupings are conformable and both produce an m×s matrix. Because the grouping is immaterial, a product of several matrices may be written without parentheses at all.

Concepts

The entry-by-entry proof template

Every property on this page is established the same way. To prove X=Y for matrix expressions, show [X]ij=[Y]ij for all valid i and j, then invoke the definition of matrix equality. Expanding with the entry formula turns matrices into finite sums of complex numbers, at which point the field axioms take over. Associativity, for example, becomes k[A]ik[B]k[D]j evaluated in two different orders, and finite sums may be reordered freely. The discipline of working with a single entry rather than a whole array is what keeps these proofs verifiable.

What associativity buys

Three consequences follow immediately. First, a chain ABCD needs no parentheses, so notation stays clean. Second, matrix powers Ak are unambiguous, which is what makes matrix polynomials, exponentials and eigenvalue theory possible. Third — and most practically — the grouping can be chosen for cost. Multiplying an m×n by an n×p by a p×1 costs mnp+mp multiplications if grouped from the left and np+mn from the right; for a large chain the optimal parenthesisation is found by dynamic programming and can change the run time by orders of magnitude.

Bilinearity

The two distributive laws together with the scalar rule say exactly that matrix multiplication is a bilinear map: linear in its left argument when the right is held fixed, and linear in its right argument when the left is held fixed. This is the precise sense in which multiplication respects the vector space structure of matrices, and it is what allows a product to be expanded, factored and differentiated in the ordinary way, provided the order of factors is never disturbed.

Conjugation, transposition and the order-reversal rule

(AB)t=BtAt, and since conjugation passes straight through a product, (AB)=BA as well. The reversal is forced before any arithmetic is done: if AB is m×p then (AB)t is p×m, and the only conformable way to build that from At (of size n×m) and Bt (of size p×n) is BtAt. The entry proof then confirms the numbers agree. The same reversal governs inverses, (AB)1=B1A1, and it is the reason gradients propagate backwards through a network of linear layers.

AB¯=A¯B¯, with no reversal of order. Conjugation is an entry-wise operation and complex conjugation is multiplicative and additive, so it commutes with every step of the entry formula. Combining this with the transpose rule gives the adjoint rule, and it explains the asymmetry: the reversal in (AB)=BA comes entirely from the transposition, never from the conjugation.

The inner product is a matrix product

Regarding u,vm as m×1 matrices, u,v=utv¯=vu, a 1×1 matrix identified with its lone entry. This is more than a notational trick: it means every theorem about matrix products applies to inner products for free, and it produces the adjoint relation Au,v=u,Av by a single application of the reversal rule. Gram matrices, normal equations and projection formulas all descend from this identification.

What does not hold, and why it matters

Commutativity fails: AB and BA may differ, may have different sizes, or only one may exist. Cancellation fails: AB=AC does not give B=C, because A(BC)=O can occur with BC. Zero divisors exist, so AB=O tells you nothing about A or B individually. And (AB)1 is B1A1, never A1B1. Each of these is a live source of error in derivations, and the discipline is simple: never perform a manipulation that is not licensed by a stated rule.

Decision path: is this manipulation legitimate?

Are all products conformable?Write the sizes of every factor first. Many invalid manipulations are caught at this stage because the rewritten expression does not typecheck.
Does the step change the order of factors?If yes, it is illegal unless justified by a specific rule such as the transpose reversal or a proven commuting pair. Non-commutativity is the default.
Does it only regroup, expand or move a scalar?Associativity, the two distributive laws and the scalar rule permit these freely. No hypothesis beyond conformability is required.
Does it cancel a common factor?Not permitted. Cancellation requires the factor to be invertible, in which case multiply both sides by its inverse on the correct side, and state which side.
Does it involve a transpose, conjugate or inverse of a product?Conjugation preserves order. Transposition, adjunction and inversion all reverse it. Check the sizes of the rewritten expression as a confirmation.

Equations

Zero matrix annihilates

EQ-PMM-01
AOn×p=Om×p,Op×mA=Op×n

Valid for any m×n matrix A. The zero matrices on the two sides of each equation are of different sizes, which the subscripts record.

Identity matrix acts trivially

EQ-PMM-02
AIn=A,ImA=A

For an m×n matrix. The two identities have different sizes unless A is square; this is the property that names the matrix.

Distributive laws

EQ-PMM-03
A(B+C)=AB+AC,(B+C)D=BD+CD

Both must be stated. Non-commutativity means the left-hand and right-hand versions are logically independent, though both are true.

Scalars commute with products

EQ-PMM-04
α(AB)=(αA)B=A(αB),α

A scalar may be extracted from a product or pushed into either factor. Scalars are the one thing that commutes with everything.

Associativity

EQ-PMM-05
A(BD)=(AB)D

For A of size m×n, B of size n×p and D of size p×s. The common value is k[A]ik[B]k[D]j, summed in either order.

Conjugate, transpose and adjoint of a product

EQ-PMM-06
AB¯=A¯B¯,(AB)t=BtAt,(AB)=BA

Conjugation preserves the order; transposition and adjunction reverse it. The reversal is required for conformability alone, before any entries are compared.

Inner product as a matrix product

EQ-PMM-07
u,v=utv¯=vu,Au,v=u,Av

Treating vectors as single-column matrices identifies the inner product with a 1×1 product, and the adjoint relation follows from the order-reversal rule.

Variable Definitions

Symbols used on this page
SymbolNameMeaningDomain / type
ALeft factorMatrix appearing first in a productm x n matrix
B,CMiddle factorsMatrices of matching size, so that B+C exists in the distributive lawsn x p matrices
DRight factorMatrix completing a three-term chainp x s matrix
αScalarMultiplier that may be moved into either factor of a productelement of C
InIdentity matrixSquare matrix with ones on the diagonal, the multiplicative identity of Mnnn x n matrix
Om×pZero matrixMatrix of all zeros, annihilator under multiplication and identity under additionm x p matrix
AtTransposeRows and columns exchanged; reverses factor order in a productn x m matrix
AAdjointConjugate transpose A¯t; reverses factor order and conjugates entriesn x m matrix
MmnMatrix spaceThe set of all m×n matrices; Mnn is a ring under these operationsvector space over C

Worked Numerical Example

Problem statement

A measurement chain applies three linear stages to a raw reading: a 4-channel calibration vector is combined by a 3×4 sensor-fusion stage, then reduced by a 2×3 output stage. Verify associativity numerically, count the cost of both groupings, and confirm the transpose reversal rule on the same data.

  1. Define the three factors

    A is the 2×3 output stage, B the 3×4 fusion stage and d the 4×1 raw reading. The chain ABd is conformable as (2×3)(3×4)(4×1) and produces a 2×1 result whichever way it is grouped.

    A=[121034],B=[201113200142],d=[1231]
  2. Group from the left: form the composite stage first

    Computing AB collapses the two stages into a single 2×4 operator. Entry (1,1), for instance, is (1)(2)+(2)(1)+(1)(0)=4.

    AB=[4573313108]
  3. Apply the composite to the reading

    Row 1 of AB against d gives 410213=30; row 2 gives 326+30+8=15.

    (AB)d=[3015]
  4. Group from the right instead

    Now push the reading through the fusion stage first, then through the output stage. Bd is a 3×1 intermediate: 2+0+31=4, 166+0=11 and 02+12+2=12.

    Bd=[41112],A(Bd)=[42212033+48]=[3015]
  5. Compare the cost of the two groupings

    Left grouping: 2×3×4=24 multiplications to form AB, then 2×4×1=8 to apply it, giving 32. Right grouping: 3×4×1=12 for Bd, then 2×3×1=6, giving 18. Associativity guarantees identical answers; only the work differs, here by a factor of 1.8, and by far more at realistic sizes.

    32multiplicationsversus18multiplications
  6. Verify the transpose reversal

    AB is 2×4, so (AB)t is 4×2. The only conformable product of the transposed factors is BtAt, of size (4×3)(3×2). Computing both gives the same array, entry for entry.

    (AB)t=[4351371038]=BtAt
  7. Confirm that the wrong order is not even defined

    The erroneous form AtBt would be (3×2)(4×3), which is not conformable at all. Checking sizes therefore catches this particular mistake before any arithmetic, which is why the size check belongs at the start of every manipulation rather than the end.

  8. Note what is not being claimed

    Nothing here shows AB=BA; indeed BA does not exist, since B has four columns and A has two rows. Associativity concerns grouping only, never the order of the factors, and the two are routinely confused.

Result

Both groupings return [3015]t, as associativity requires, but the right-to-left evaluation uses 18 multiplications against 32. The engineering rule follows directly: when a chain of operators ends in a vector, apply the factors to the vector rather than forming the composite operator — unless the composite will be reused across many readings, in which case forming it once amortises the cost. The transpose of the two-stage chain is the reversed product of the transposed stages, which is the identity that propagates sensitivities backwards through the same chain.

Applications & Industry Use

Robotics

Kinematic chains and frame composition

The pose of an end effector is the product of the homogeneous transforms of each joint. Associativity lets sub-chains be precomputed and cached, while non-commutativity is the formal statement that rotating then translating differs from translating then rotating — a distinction that shows up as a physical error, not a numerical one.

Structural engineering

Element stiffness transformation

A local element stiffness matrix is mapped into global coordinates by the congruence K=TtkT. The order-reversal rule is what guarantees this expression is conformable and symmetric: (TtkT)t=TtktT, which equals the original whenever k is symmetric.

Machine learning

Backpropagation through linear layers

A forward pass composes weight matrices in one order; the gradient computation composes their transposes in the reverse order, which is exactly the rule (AB)t=BtAt applied along the chain. Frameworks implement the backward pass as a transposed GEMM precisely because of this identity.

Control systems

State transition over multiple steps

For a discrete-time system the state after k steps is Akx0, and the power is well defined only because multiplication is associative. Time-varying systems compose their step matrices in strict order, and reversing that order gives a different and physically wrong trajectory.

Wireless communications

Cascaded MIMO channels and precoders

An effective channel is the product of precoder, propagation and combiner matrices. Associativity permits the receiver to fold the combiner into the channel estimate, while the adjoint rule gives the matched filter H as the natural receive processing, with Hx,y=x,Hy making the relationship precise.

Computational statistics

Gram matrices and normal equations

The cross-product matrix XtX of a design matrix is symmetric because transposing it reverses the order and returns the same expression. That symmetry halves the storage and permits a Cholesky factorisation, and it is a direct consequence of the reversal rule rather than an accident of the data.

Design Considerations

Choose the parenthesisation before you compute

Associativity means grouping is free to choose and never free of consequence. For a chain of several matrices the optimal ordering is found by a standard dynamic programming algorithm in O(k3) time for k factors, which is negligible against the products themselves. Libraries that evaluate expressions lazily — Eigen, NumPy's multi_dot, most tensor frameworks — do this automatically; hand-written loops do not.

Never rely on commutativity, even when it happens to hold

Some specific pairs commute: a matrix with its own powers, with the identity, with any scalar multiple of the identity, and diagonal matrices with each other. Building a derivation on such a coincidence is fragile, because a later change of data or generalisation of the code silently invalidates it. State the commuting hypothesis explicitly if the argument depends on it.

Cancel only through an inverse, and record the side

From AB=AC nothing follows unless A is invertible, and then only by multiplying on the left by A1. Left and right cancellation are different operations with different requirements. Where A is rectangular or singular, the correct tool is the null space of A: BC must have every column in N(A).

Use transpose flags rather than materialising transposes

Every BLAS multiply accepts transpose and conjugate-transpose flags on each operand, so BtAt is computed without ever forming Bt or At in memory. Explicitly transposing a large matrix costs a full pass over memory with poor locality and doubles the footprint, for no benefit.

Do not confuse mathematical associativity with floating-point associativity

A(BD) and (AB)D are equal as matrices but will generally differ in their last bits when computed in floating point, because floating-point addition is not associative and the two routes sum different intermediate quantities. Any test comparing two groupings must use a tolerance, and any claim of bitwise reproducibility must fix the evaluation order.

Exploit structure that the rules preserve

The product of two upper triangular matrices is upper triangular; the product of a matrix with its own adjoint is Hermitian; congruence TkT preserves Hermitian symmetry and positive semi-definiteness. Recognising that a product is structured allows a specialised kernel and a specialised storage format, often halving both time and memory.

Standards & Codes

Notation, interchange and numerical standards that govern how this material is written down, stored and computed in production systems.

Applicable standards, conventions and reference implementations
ReferenceTitleRelevance to this topic
BLAS Level 3Basic Linear Algebra Subprograms, matrix-matrix operationsThe xGEMM signature Cαop(A)op(B)+βC encodes the scalar rule and distributivity directly in its interface, and its transpose flags implement the order-reversal rule without materialising a transpose.
ISO 80000-2Quantities and units — Part 2: MathematicsStandardises the notation for the identity matrix, the transpose and the conjugate transpose, distinctions on which every identity in this page depends.
IEEE 754-2019IEEE Standard for Floating-Point ArithmeticFloating-point addition is not associative, so mathematically identical groupings of a matrix chain produce numerically different results; the standard defines the rounding that bounds the discrepancy.
ISO/IEC 14882Programming languages — C++Operator overloading and expression templates allow a library to see a whole product chain before evaluating it, which is what permits automatic reassociation into the cheapest grouping.
ISO/IEC 40314Mathematical Markup Language (MathML) Version 3.0Encodes products, transposes and adjoints with explicit grouping structure, so that the distinction between A(BD) and (AB)D survives into machine-readable form.

Material Selection

For a mathematical topic, "material" is the numeric representation: the scalar field, storage format and precision the computation is built from.

Representation and precision selection
RepresentationSelect whenTrade-off
Exact integer or rational arithmeticVerifying an algebraic identity, testing a proof, or working with combinatorial and stoichiometric data.The identities hold exactly, so a discrepancy is a genuine error rather than rounding; but entry growth in long chains is rapid and memory use unbounded.
IEEE 754 binary64General engineering and scientific chains.Identities hold to within a relative error of order nε; equality tests between different groupings must use a tolerance rather than exact comparison.
IEEE 754 binary32 or reduced precisionInference, graphics and real-time pipelines where throughput dominates.Two to four times the throughput, but the gap between mathematically equal groupings widens, and long chains may need a wider accumulator to remain meaningful.
Finite field arithmeticCoding theory, cryptography and combinatorial algorithms over 𝔽2 or a prime field.All ring properties on this page hold verbatim and there is no rounding at all; but there is no notion of magnitude, so conditioning and tolerance have no meaning.
Structured storage: triangular, symmetric, bandedThe operands or the product are known to be structured, as in stiffness assembly or Cholesky-based statistics.Halves storage and roughly halves arithmetic through specialised kernels, at the cost of code paths that must be selected correctly — using a general kernel on packed storage produces silent nonsense.
Real versus complex scalarsThe data carries phase, as in spectral, phasor or quantum computation.The transpose must be replaced by the adjoint throughout or the adjoint relation for inner products fails; complex multiplication costs roughly four times its real counterpart per entry.

Manufacturing Notes

Implementation notes — how the result is actually produced by hand, by algorithm and by library, including cost and numerical behaviour.

The proof pattern in practice

To verify any proposed identity, expand a single entry of each side with the entry formula, then justify each rewriting step by naming the scalar property used — distributivity in , commutativity of complex multiplication, or exchange of finite summation order. If no such justification exists for a step, the identity is false, and constructing a 2×2 counterexample is usually a matter of minutes.

Matrix chain ordering

Given k factors with dimensions p0×p1,,pk1×pk, the minimum multiplication count over all parenthesisations is computed by dynamic programming in O(k3) time and O(k2) space. For chains that mix wide and tall factors the saving over a naive left-to-right evaluation is routinely a factor of ten or more, and it costs nothing at run time.

Library behaviour

NumPy's multi_dot performs chain ordering automatically; the plain @ operator evaluates strictly left to right. Eigen builds an expression tree and can fuse a scalar and an addition into a single gemm call, implementing the scalar and distributive rules as a compile-time optimisation. MATLAB evaluates left to right and offers no automatic reassociation, so the parenthesisation written is the one executed.

Verification on random data

The cheapest test of an implementation is to assert the identities themselves: generate random conformable matrices and check A(BD)(AB)D, (AB)tBtAt and AIA against a tolerance proportional to ε times the norms involved. Failures at a level far above tolerance point to an index or conformability bug rather than to rounding.

Cost of the identities themselves

Nothing on this page is free at scale. Forming AB costs 2mnp operations, and rewriting an expression to avoid forming a large intermediate is usually a bigger win than any low-level optimisation. Where an identity permits the same result to be obtained with a smaller intermediate — associativity around a vector, or a transpose flag instead of an explicit transpose — the algebra is the performance work.

Failure Modes & Common Mistakes

Failure modes, root causes and prevention
Failure mode / mistakeImpactRoot causePrevention & detection
Assuming commutativityhighRewriting AB as BA inside a derivation by analogy with scalar algebra.Preserve factor order in every step. Where a swap is genuinely needed, use the transpose or adjoint rule, or prove that the specific pair commutes.
Writing (AB)t=AtBthighApplying transposition factor by factor without reversing the order.Check conformability of the rewritten expression: for non-square factors the wrong order is not even defined, which exposes the error immediately.
Writing (AB)1=A1B1highDistributing inversion over a product in the same erroneous way as transposition.Use (AB)1=B1A1 and confirm by multiplying out: ABB1A1=AIA1=I.
Cancelling a common factorhighDeducing B=C from AB=AC without establishing that A is invertible.Multiply by A1 explicitly on the correct side, and only after invertibility is proved. Otherwise conclude only that the columns of BC lie in N(A).
Concluding a factor is zero from a zero producthighTreating AB=O as implying A=O or B=O, which fails because matrix rings have zero divisors.Recall the standard counterexample of two non-zero 2×2 matrices with zero product, and reason instead about column spaces and null spaces.
Mismatched sizes in the distributive lawmediumApplying A(B+C)=AB+AC when B and C have different shapes, so their sum does not exist.Confirm B and C are the same size before distributing; the rule requires the sum to be defined, not merely each product.
Confusing transpose with adjoint on complex datahighUsing At where A is required, so conjugates are omitted and the adjoint relation for inner products fails.Use the adjoint throughout complex work and test the relation Au,v=u,Av on random complex data.
Expecting bitwise equality between groupingslowComparing A(BD) with (AB)D using exact equality in a unit test.Compare with a tolerance scaled by ε and the norms of the operands; mathematical associativity does not survive floating-point rounding.

FAQs

Which familiar arithmetic rules survive for matrices and which do not?

Associativity, both distributive laws, the scalar rule and the identity and zero laws all survive. Commutativity and cancellation do not, and the product of two non-zero matrices can be zero. The practical rule is to perform no manipulation that is not licensed by a stated theorem, because intuition transferred from scalar algebra is unreliable here.

Why does transposition reverse the order of a product but conjugation does not?

Conjugation acts entry by entry and leaves positions alone, so it commutes with every step of the entry formula. Transposition moves entries between rows and columns, and for the result to be conformable the factors must swap: the transpose of an m×p product is p×m, and only BtAt has that shape. The adjoint reverses order because it contains a transposition.

If AB=AC, can I conclude that B=C?

No, unless A is invertible. Cancellation fails because A(BC)=O can hold with BC whenever the columns of BC lie in the null space of A. If A is invertible, multiply on the left by A1 — and note that this is left cancellation only; the right-hand version requires the factor on the right.

Does associativity mean I can compute a chain in any order I like?

It means the result is the same for any grouping, not for any ordering of the factors. Rearranging which matrices are adjacent is illegal; changing where the parentheses sit is not only legal but is the standard optimisation, since the cost of different groupings can differ by orders of magnitude.

Why do two groupings of the same product give slightly different numbers in floating point?

Because floating-point addition is not associative, and the two groupings accumulate different intermediate sums with different rounding. Both results are correct within their error bounds, and the discrepancy is of order ε times the norms involved. Any comparison must therefore use a tolerance.

In what sense do square matrices form a ring?

For a fixed size n, the set Mnn is closed under addition and multiplication, addition is commutative with identity O and inverses, multiplication is associative with identity In, and multiplication distributes over addition. That is exactly the definition of a ring with identity. It is non-commutative, and it has zero divisors, so it is not an integral domain and not a field.

How does the inner product fit into these rules?

Treat vectors as single-column matrices. Then u,v=utv¯=vu is an ordinary matrix product with a 1×1 result. Every property of matrix products then applies to inner products automatically, and the adjoint relation Au,v=u,Av is a single application of the order-reversal rule.

References

  1. Beezer, R. A. A First Course in Linear Algebra, Version 0.70. University of Puget Sound, 2006. Section MM, subsection PMM. Licensed under the GNU Free Documentation License v1.2.
  2. ISO 80000-2:2019, Quantities and units — Part 2: Mathematics. International Organization for Standardization.
  3. Horn, R. A. and Johnson, C. R. Matrix Analysis, 2nd edition. Cambridge University Press, 2013.
  4. Cormen, T. H., Leiserson, C. E., Rivest, R. L. and Stein, C. Introduction to Algorithms, 4th edition. MIT Press, 2022. Matrix-chain multiplication.
  5. Dongarra, J. J., Du Croz, J., Duff, I. S. and Hammarling, S. A Set of Level 3 Basic Linear Algebra Subprograms. ACM Transactions on Mathematical Software, 1990.
  6. IEEE 754-2019, IEEE Standard for Floating-Point Arithmetic. Institute of Electrical and Electronics Engineers.

AI Suggested Questions

  • Give me two non-zero 2x2 matrices whose product is the zero matrix, and explain why this makes cancellation impossible.
  • Prove associativity of matrix multiplication by exchanging the order of a double summation, naming the property used at each step.
  • Find the optimal parenthesisation for a chain of matrices with dimensions 30x35, 35x15, 15x5, 5x10 and 10x20, and give the multiplication counts.
  • Which pairs of matrices commute, and how would I characterise the set of matrices commuting with a given diagonal matrix?
  • Show how the transpose reversal rule produces the backward pass of a two-layer linear network from its forward pass.
  • How large can the difference between A(BD) and (AB)D become in binary64, and how should a unit test set its tolerance?

Related Calculators

Continue learning

Matrix Multiplication, Entry-by-EntryArticle · Engineering MathematicsNEXT LESSON →The Inverse of a MatrixArticle · Engineering MathematicsMatrix MultiplicationArticle · Engineering MathematicsComputing the Inverse of a MatrixArticle · Engineering Mathematics