For Boolean matrices, replace numerical addition by logical disjunction and multiplication by logical conjunction. Applied to adjacency matrices, the product records a walk formed by following one segment represented by the first matrix and one represented by the second. For an adjacency matrix A on n≥1 vertices, start from I∨A. Repeated squaring then computes reflexive transitive closure once the exponent reaches n−1: the identity entries pad shorter walks, and every reachable pair has a simple path of length at most n−1.
For dimension-compatible matrices, (AB)C=A(BC). In coordinates both sides have (i,j) entry ∑k,lAikBklClj; distributing and regrouping the finite sums proves equality. This permits accumulating a product left to right even when a recursive algorithm groups the same transformations from the right. It does not permit changing factor order, because matrix multiplication is generally not commutative.
The matrix multiplication algorithm of Volker Strassen using seven half-size block products and quadratically many scalar additions per recursion level. Its recurrence is T(n)=7T(n/2)+Θ(n2), giving Θ(nlog27) arithmetic operations by the Master theorem.[ref]
https://staging.sigact.hosting.acm.org/prizes/knuth/2008.html. ACM SIGACT, 2008 Knuth Prize citation, the 1969 matrix-multiplication contribution
The product of an m×n matrix with an n-component vector forms one row inner product per output component. A dense evaluation costs O(mn) arithmetic operations in Big O notation.
For matrices A∈Fm×n and B∈Fn×p, their matrix product is the matrix AB∈Fm×p with entries (AB)ij=∑k=1nAikBkj. The operation producing it is matrix multiplication, representing composition of the corresponding linear maps.
The outer product of column vectors u and v is the rank-at-most-one matrix uvT, whose (i,j) entry is uivj.
Ancestors (8)
Incoming links (185)
- Adjoint operator
- Algebra
- Associativity of matrix multiplication
- Centralizer of a diagonal matrix
- Closed walk
- Column space
- Commuting elements
- Covariance matrix
- Determinant
- Diagonal scaling for a two-dimensional linear system
- Exponentiation by squaring
- Farkas' lemma
- Finite-pulse Ramsey transition probability
- Fundamental matrix of a finite absorbing Markov chain
- Gaussian elimination with a row swap
- Givens rotation
- Givens row-pair update
- Hadamard interchange of Y eigenstates
- Hadamard product
- Index notation
- Kalman prediction step
- Lie bracket
- Locally admissible word for a transition matrix
- LU factorization and solve costs
- Matrix and wave mechanics equivalence
- Matrix-chain cost model
- Matrix-chain dynamic programming
- Matrix-chain multiplication
- Matrix dimensions
- Matrix exponentiation
- Matrix inverse
- Matrix product
- Matrix ring
- Monodromy matrix of a periodic linear system
- Multiplication
- Multivariable chain rule
- Nonnegative-orthant optimality certificate
- Open-chain endpoint corrections for an exponential Ising kernel
- Orientation-preserving affine group of the real line
- Past exam of the advanced quantum theory: path integrals and many-particle physics course of the University of Oxford / 2018 / 1 / c / Solution
- Past exam of the advanced quantum theory: path integrals and many-particle physics course of the University of Oxford / 2018 / 2 / a / Solution
- Past exam of the advanced topics in statistical machine learning course of the University of Oxford / 2025 / 3 / a / ii / Solution
- Past exam of the algebra, analysis and differential equations 1 course of the University of Oxford / 2010 / 2 / a / Solution
- Past exam of the computer science course of the University of Oxford / 2015 / Computer graphics / 2 / b / iii / Solution
- Past exam of the computer science course of the University of Oxford / 2015 / Geometric modelling / 2 / c / Solution
- Past exam of the groups and representations course of the University of Oxford / 2018 / 2 / a / Solution
- Past exam of the groups and representations course of the University of Oxford / 2025 / 1 / c / Solution
- Past exam of the history of mathematics course of the University of Oxford / 2023 / 8 / Solution
- Past exam of the introduction to quantum information course of the University of Oxford / 2021 / 1 / d / Solution
- Past exam of the linear algebra course of the University of Oxford / 2021 / 1 / b / Solution
- Past exam of the linear algebra course of the University of Oxford / 2023 / 2 / c / Solution
- Past exam of the mathematical methods I course of the University of Oxford / 2013 / 11 / b / Solution
- Past exam of the mathematical methods I course of the University of Oxford / 2014 / 12 / iii / Solution
- Past exam of the mathematical methods I course of the University of Oxford / 2017 resit / 10 / a / i / Solution
- Past exam of the mathematical methods I course of the University of Oxford / 2019 / 11 / c / i / Solution
- Past exam of the mathematical methods I course of the University of Oxford / 2019 / 11 / c / v / Solution
- Past exam of the mathematical methods I course of the University of Oxford / 2021 / 3 / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2002 / ia / Paper 3 / 1A / Solution
- Past exam of the mathematics course of the University of Cambridge / 2003 / ia / Paper 4 / 7C / ii / Solution
- Past exam of the mathematics course of the University of Cambridge / 2003 / iii / Paper 16 / 5 / c / Solution
- Past exam of the mathematics course of the University of Cambridge / 2003 / iii / Paper 8 / 3 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2004 / ib / Paper 2 / 13F / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / ia / Paper 3 / 6D / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / ia / Paper 3 / 7D / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / iii / Paper 16 / 1 / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2008 / ia / Paper 1 / 6A / Solution
- Past exam of the mathematics course of the University of Cambridge / 2008 / ia / Paper 4 / 7D / a / Solution
- Past exam of the mathematics course of the University of Cambridge / 2009 / ia / Paper 1 / 8A / a / Solution
- Past exam of the mathematics course of the University of Cambridge / 2009 / ia / Paper 1 / 8A / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2009 / ib / Paper 2 / 11F / Solution
- Past exam of the mathematics course of the University of Cambridge / 2010 / ia / Paper 1 / 5A / i / Solution
- Past exam of the mathematics course of the University of Cambridge / 2010 / ia / Paper 1 / 7B / i / Solution
- Past exam of the mathematics course of the University of Cambridge / 2010 / iii / Paper 7 / 2 / c / Solution
- Past exam of the mathematics course of the University of Cambridge / 2010 / iii / Paper 7 / 3 / c / Solution
- Past exam of the mathematics course of the University of Cambridge / 2011 / ia / Paper 3 / 6D / a / Solution
- Past exam of the mathematics course of the University of Cambridge / 2011 / ia / Paper 3 / 6D / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2013 / ib / Paper 2 / 1E / Solution
- Past exam of the mathematics course of the University of Cambridge / 2015 / ia / Paper 3 / 8D / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2016 / ia / Paper 1 / 2C / Solution
- Past exam of the mathematics course of the University of Cambridge / 2016 / ia / Paper 3 / 5D / ii / Solution
- Past exam of the mathematics course of the University of Cambridge / 2016 / ib / Paper 1 / 9F / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2017 / ii / Paper 4 / 18G / a / Solution
- Past exam of the mathematics course of the University of Cambridge / 2021 / ib / Paper 2 / 17B / a / Solution
- Past exam of the mathematics course of the University of Cambridge / 2022 / ia / Paper 1 / 2B / a / ii / Solution
- Past exam of the mathematics course of the University of Cambridge / 2023 / iii / Paper 133 / 2 / a / Solution
- Past exam of the mathematics course of the University of Oxford / 2021 / Prelims / Mathematics I / 1 / a / iii / Solution
- Past exam of the mathematics course of the University of Oxford / 2021 / Prelims / Mathematics I / 1 / a / ii / Solution
- Past exam of the mathematics course of the University of Oxford / 2021 / Prelims / Mathematics I / 1 / a / i / Solution
- Past exam of the mathematics course of the University of Oxford / 2021 / Prelims / Mathematics I / 1 / b / iii / Solution
- Past exam of the mathematics course of the University of Oxford / 2021 / Prelims / Mathematics I / 1 / b / i / Solution
- Past exam of the mathematics course of the University of Oxford / 2021 / Prelims / Mathematics I / 4 / b / i / Solution
- Past exam of the mathematics course of the University of Oxford / 2021 / Prelims / Mathematics IV resit / 2 / a / Solution
- Past exam of the mathematics course of the University of Oxford / 2023 / Prelims / Mathematics I / 1 / a / ii / Solution
- Past exam of the mathematics course of the University of Oxford / 2023 / Prelims / Mathematics I / 1 / b / i / Solution
- Past exam of the mathematics course of the University of Oxford / 2023 / Prelims / Mathematics I / 3 / b / i / Solution
- Past exam of the mathematics course of the University of Oxford / 2023 / Prelims / Mathematics I / 5 / a / iii / Solution
- Past exam of the mathematics course of the University of Oxford / 2023 / Prelims / Mathematics I / 5 / a / ii / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2001 / Paper 1 / 10 / a / ii / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2001 / Paper 1 / 3 / c / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2001 / Paper 1 / 7 / a / ii / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2002 / Paper 1 / 6 / a / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2002 / Paper 1 / 8 / c / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2003 / Paper 1 / 5 / a / i / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2011 / Paper 2 / 4 / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2012 / Paper 2 / 11 / b / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2019 / Paper 2 / 17 / b / i / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2021 / Paper 2 / 17 / a / ii / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2022 / Paper 1 / 18 / a / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2022 / Paper 1 / 18 / c / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2022 / Paper 2 / 2 / a / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2023 / Paper 1 / 18 / a / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2023 / Paper 2 / 17 / c / ii / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2024 / Paper 1 / 18 / a / ii / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2025 / Paper 1 / 17 / a / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2025 / Paper 1 / 17 / c / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2025 / Paper 1 / 17 / g / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2025 / Paper 2 / 18 / b / iv / Solution
- Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge / 2025 / Paper 2 / 5 / b / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2001 / Paper 2 / 10 / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2001 / Paper 2 / 8 / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2002 / Paper 2 / 8 / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2003 / Paper 2 / 8 / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2007 / Paper 2 / 9 / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2011 / Paper 2 / 10 / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2015 / Paper 2 / 8 / b / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2016 / Paper 2 / 8 / b / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2017 / Paper 2 / 10 / c / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2017 / Paper 2 / 8 / a / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2017 / Paper 2 / 8 / b / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2017 / Paper 2 / 9 / a / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2019 / Paper 2 / 9 / b / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2020 / Paper 1 / 3 / a / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2021 / Paper 2 / 8 / a / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2022 / Paper 2 / 10 / a / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2022 / Paper 2 / 10 / b / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2023 / Paper 2 / 8 / d / Solution
- Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge / 2025 / Paper 1 / 5 / b / i / Solution
- Past exam of the numerical analysis course of the University of Oxford / 2017 / 2 / c / Solution
- Past exam of the numerical linear algebra course of the University of Oxford / 2011 / 1 / e / Solution
- Past exam of the numerical linear algebra course of the University of Oxford / 2011 / 3 / d / Solution
- Past exam of the numerical linear algebra course of the University of Oxford / 2025 / 3 / a / ii / Solution
- Past exam of the numerical linear algebra course of the University of Oxford / 2025 / 3 / b / iv / Solution
- Past exam of the particle physics course of the University of Oxford / 2021 / 3 / b / Solution
- Past exam of the physics A course of the University of Cambridge / 2016 / Paper 1 / Section B / B9 / Solution
- Past exam of the symmetry and relativity course of the University of Oxford / 2021 / 4 / b / Solution
- Past exam of the symmetry and relativity course of the University of Oxford / 2021 / 4 / c / Solution
- Past exam of the theoretical physics II course of the University of Cambridge / 2014 / Paper 1 / 6 / a / Solution
- Past exam of the theoretical physics major option course of the University of Oxford / 2018 / 4 / a / Solution
- Past exam of the theoretical physics major option course of the University of Oxford / 2018 / 5 / c / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2013 / Digital systems, linear algebra, introduction to formal proof / 6 / c / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2013 / Digital systems, linear algebra, introduction to formal proof / 6 / e / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2013 / Functional programming, design and analysis of algorithms / 5 / e / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2014 / Digital systems, linear algebra, introduction to formal proof / 5 / b / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2014 / Digital systems, linear algebra, introduction to formal proof / 6 / b / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2014 / Imperative programming / 4 / g / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2015 / Digital systems, linear algebra, introduction to formal proof / 1 / c / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2015 / Digital systems, linear algebra, introduction to formal proof / 3 / a / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2016 / Digital systems, linear algebra, introduction to formal proof / 5 / b / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2016 / Functional programming, design and analysis of algorithms / 4 / c / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2016 / Functional programming, design and analysis of algorithms / 4 / d / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2017 / Digital systems, linear algebra, introduction to formal proof / 4 / c / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2017 / Digital systems, linear algebra, introduction to formal proof / 5 / d / i / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2019 / Digital systems, linear algebra, introduction to formal proof / 5 / b / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2021 / Digital systems, linear algebra, introduction to formal proof / 4 / a / i / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2022 / Digital systems, linear algebra, introduction to formal proof / 5 / b / i / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2022 / Digital systems, linear algebra, introduction to formal proof resit / 4 / a / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2022 / Digital systems, linear algebra, introduction to formal proof resit / 5 / c / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2022 / Digital systems, linear algebra, introduction to formal proof resit / 5 / f / Solution
- Past exam of the year 1 of the computer science course of the University of Oxford / 2023 / Functional programming, design and analysis of algorithms / 8 / b / Solution
- Past exam of the year 2 of the earth sciences (geology) course of the University of Oxford / 2024 / Paper 3 / 6 / a / Solution
- Polynomial evaluated at a matrix
- Prefix scan
- QR decomposition
- Ramsey interferometry
- Recursive inverse of a lower triangular matrix
- Reusing LU factors for multiple right-hand sides
- Ring
- Row reduction with a parameterized right-hand side
- Small rotation commutator
- Stationary distribution existence for a finite Markov chain
- Stochastic matrix
- Strassen's algorithm
- Transition frequencies and matrix multiplication
- Triangular solves for LU decomposition
- Two-level sudden quench
Discussion (0) New discussion
There are no discussions about this article yet.
Articles by others on the same topic (2)
Matrix multiplication is a mathematical operation that takes two matrices and produces a third matrix. The multiplication of matrices is not as straightforward as multiplying individual numbers because specific rules govern when and how matrices can be multiplied together. Here are the key points about matrix multiplication: 1. **Compatibility**: To multiply two matrices, the number of columns in the first matrix must equal the number of rows in the second matrix.
Since a matrix M can be seen as a linear map fM(x), the product of two matrices MN can be seen as the composition of two linear maps:One cool thing about linear functions is that we can easily pre-calculate this product only once to obtain a new matrix, and so we don't have to do both multiplications separately each time.
fM(fN(x))