
In mathematics, specifically in linear algebra, matrix multiplication is a binary operation that produces a matrix from two matrices. For matrix multiplication, the number of columns in the first matrix must be equal to the number of rows in the second matrix. The resulting matrix, known as the matrix product, has the number of rows of the first and the number of columns of the second matrix. The product of matrices A and B is denoted as AB.

Matrix multiplication was first described by the French mathematician Jacques Philippe Marie Binet in 1812, to represent the composition of linear maps that are represented by matrices. Matrix multiplication is thus a basic tool of linear algebra, and as such has numerous applications in many areas of mathematics, as well as in applied mathematics, statistics, physics, economics, and engineering. Computing matrix products is a central operation in all computational applications of linear algebra.
Notation
This article will use the following notational conventions: matrices are represented by capital letters in bold, e.g. A; vectors in lowercase bold, e.g. a; and entries of vectors and matrices are italic (they are numbers from a field), e.g. A and a. Index notation is often the clearest way to express definitions, and is used as standard in the literature. The entry in row i, column j of matrix A is indicated by (A)ij, Aij or aij. In contrast, a single subscript, e.g. A1, A2, is used to select a matrix (not a matrix entry) from a collection of matrices.
Definitions
Matrix times matrix
If A is an m × n matrix and B is an n × p matrix, the matrix product C = AB (denoted without multiplication signs or dots) is defined to be the m × p matrix
such that
for i = 1, ..., m and j = 1, ..., p.
That is, the entry of the product is obtained by multiplying term-by-term the entries of the ith row of A and the jth column of B, and summing these n products. In other words,
is the dot product of the ith row of A and the jth column of B.
Therefore, AB can also be written as
Thus the product AB is defined if and only if the number of columns in A equals the number of rows in B, in this case n.
In most scenarios, the entries are numbers, but they may be any kind of mathematical objects for which an addition and a multiplication are defined, that are associative, and such that the addition is commutative, and the multiplication is distributive with respect to the addition. In particular, the entries may be matrices themselves (see block matrix).
Matrix times vector
A vector of length
can be viewed as a column vector, corresponding to an
matrix
whose entries are given by
If
is an
matrix, the matrix-times-vector product denoted by
is then the vector
that, viewed as a column vector, is equal to the
matrix
In index notation, this amounts to:
One way of looking at this is that the changes from "plain" vector to column vector and back are assumed and left implicit.
Vector times matrix
Similarly, a vector of length
can be viewed as a row vector, corresponding to a
matrix. To make it clear that a row vector is meant, it is customary in this context to represent it as the transpose of a column vector; thus, one will see notations such as
The identity
holds. In index notation, if
is an
matrix,
amounts to:
Vector times vector
The dot product of two vectors
and
of equal length is equal to the single entry of the
matrix resulting from multiplying these vectors as a row and a column vector, thus:
(or
which results in the same
matrix).
Illustration
The figure to the right illustrates diagrammatically the product of two matrices A and B, showing how each intersection in the product matrix corresponds to a row of A and a column of B.
The values at the intersections, marked with circles in figure to the right, are:
Fundamental applications
Historically, matrix multiplication has been introduced for facilitating and clarifying computations in linear algebra. This strong relationship between matrix multiplication and linear algebra remains fundamental in all mathematics, as well as in physics, chemistry, engineering and computer science.
Linear maps
If a vector space has a finite basis, its vectors are each uniquely represented by a finite sequence of scalars, called a coordinate vector, whose elements are the coordinates of the vector on the basis. These coordinate vectors form another vector space, which is isomorphic to the original vector space. A coordinate vector is commonly organized as a column matrix (also called a column vector), which is a matrix with only one column. So, a column vector represents both a coordinate vector, and a vector of the original vector space.
A linear map A from a vector space of dimension n into a vector space of dimension m maps a column vector
onto the column vector
The linear map A is thus defined by the matrix
and maps the column vector to the matrix product
If B is another linear map from the preceding vector space of dimension m, into a vector space of dimension p, it is represented by a matrix
A straightforward computation shows that the matrix of the composite map
is the matrix product
The general formula
) that defines the function composition is instanced here as a specific case of associativity of matrix product (see § Associativity below):
Geometric rotations
Using a Cartesian coordinate system in a Euclidean plane, the rotation by an angle around the origin is a linear map. More precisely,
where the source point
and its image
are written as column vectors.
The composition of the rotation by and that by
then corresponds to the matrix product
where appropriate trigonometric identities are employed for the second equality. That is, the composition corresponds to the rotation by angle
, as expected.
Resource allocation in economics
As an example, a fictitious factory uses 4 kinds of basic commodities, to produce 3 kinds of intermediate goods,
, which in turn are used to produce 3 kinds of final products,
. The matrices
and
provide the amount of basic commodities needed for a given amount of intermediate goods, and the amount of intermediate goods needed for a given amount of final products, respectively. For example, to produce one unit of intermediate good , one unit of basic commodity
, two units of
, no units of
, and one unit of
are needed, corresponding to the first column of
.
Using matrix multiplication, compute
this matrix directly provides the amounts of basic commodities needed for given amounts of final goods. For example, the bottom left entry of is computed as
, reflecting that
units of
are needed to produce one unit of
. Indeed, one
unit is needed for
, one for each of two
, and
for each of the four
units that go into the
unit, see picture.
In order to produce e.g. 100 units of the final product , 80 units of
, and 60 units of
, the necessary amounts of basic goods can be computed as
that is, units of
,
units of
,
units of
,
units of
are needed. Similarly, the product matrix
can be used to compute the needed amounts of basic goods for other final-good amount data.
System of linear equations
The general form of a system of linear equations is
Using same notation as above, such a system is equivalent with the single matrix equation
Dot product, bilinear form and sesquilinear form
The dot product of two column vectors is the unique entry of the matrix product
where is the row vector obtained by transposing
. (As usual, a 1×1 matrix is identified with its unique entry.)
More generally, any bilinear form over a vector space of finite dimension may be expressed as a matrix product
and any sesquilinear form may be expressed as
where denotes the conjugate transpose of
(conjugate of the transpose, or equivalently transpose of the conjugate).
General properties
Matrix multiplication shares some properties with usual multiplication. However, matrix multiplication is not defined if the number of columns of the first factor differs from the number of rows of the second factor, and it is non-commutative, even when the product remains defined after changing the order of the factors.
Non-commutativity
An operation is commutative if, given two elements A and B such that the product is defined, then
is also defined, and
If A and B are matrices of respective sizes and
, then
is defined if
, and
is defined if
. Therefore, if one of the products is defined, the other one need not be defined. If
, the two products are defined, but have different sizes; thus they cannot be equal. Only if
, that is, if A and B are square matrices of the same size, are both products defined and of the same size. Even in this case, one has in general
For example
but
This example may be expanded for showing that, if A is a matrix with entries in a field F, then
for every
matrix B with entries in F, if and only if
where
, and I is the
identity matrix. If, instead of a field, the entries are supposed to belong to a ring, then one must add the condition that c belongs to the center of the ring.
One special case where commutativity does occur is when D and E are two (square) diagonal matrices (of the same size); then DE = ED. Again, if the matrices are over a general ring rather than a field, the corresponding entries in each must also commute with each other for this to hold.
Distributivity
The matrix product is distributive with respect to matrix addition. That is, if A, B, C, D are matrices of respective sizes m × n, n × p, n × p, and p × q, one has (left distributivity)
and (right distributivity)
This results from the distributivity for coefficients by
Product with a scalar
If A is a matrix and c a scalar, then the matrices and
are obtained by left or right multiplying all entries of A by c. If the scalars have the commutative property, then
If the product is defined (that is, the number of columns of A equals the number of rows of B), then
and
If the scalars have the commutative property, then all four matrices are equal. More generally, all four are equal if c belongs to the center of a ring containing the entries of the matrices, because in this case, cX = Xc for all matrices X.
These properties result from the bilinearity of the product of scalars:
Transpose
If the scalars have the commutative property, the transpose of a product of matrices is the product, in the reverse order, of the transposes of the factors. That is
where T denotes the transpose, that is the interchange of rows and columns.
This identity does not hold for noncommutative entries, since the order between the entries of A and B is reversed, when one expands the definition of the matrix product.
Complex conjugate
If A and B have complex entries, then
where * denotes the entry-wise complex conjugate of a matrix.
This results from applying to the definition of matrix product the fact that the conjugate of a sum is the sum of the conjugates of the summands and the conjugate of a product is the product of the conjugates of the factors.
Transposition acts on the indices of the entries, while conjugation acts independently on the entries themselves. It results that, if A and B have complex entries, one has
where † denotes the conjugate transpose (conjugate of the transpose, or equivalently transpose of the conjugate).
Associativity
Given three matrices A, B and C, the products (AB)C and A(BC) are defined if and only if the number of columns of A equals the number of rows of B, and the number of columns of B equals the number of rows of C (in particular, if one of the products is defined, then the other is also defined). In this case, one has the associative property
As for any associative operation, this allows omitting parentheses, and writing the above products as
This extends naturally to the product of any number of matrices provided that the dimensions match. That is, if A1, A2, ..., An are matrices such that the number of columns of Ai equals the number of rows of Ai + 1 for i = 1, ..., n – 1, then the product
is defined and does not depend on the order of the multiplications, if the order of the matrices is kept fixed.
These properties may be proved by straightforward but complicated summation manipulations. This result also follows from the fact that matrices represent linear maps. Therefore, the associative property of matrices is simply a specific case of the associative property of function composition.
Computational complexity depends on parenthesization
Although the result of a sequence of matrix products does not depend on the order of operation (provided that the order of the matrices is not changed), the computational complexity may depend dramatically on this order.
For example, if A, B and C are matrices of respective sizes 10×30, 30×5, 5×60, computing (AB)C needs 10×30×5 + 10×5×60 = 4,500 multiplications, while computing A(BC) needs 30×5×60 + 10×30×60 = 27,000 multiplications.
Algorithms have been designed for choosing the best order of products; see Matrix chain multiplication. When the number n of matrices increases, it has been shown that the choice of the best order has a complexity of
Application to similarity
Any invertible matrix defines a similarity transformation (on square matrices of the same size as
)
Similarity transformations map product to products, that is
In fact, one has
Square matrices
Let us denote the set of n×n square matrices with entries in a ring R, which, in practice, is often a field.
In , the product is defined for every pair of matrices. This makes
a ring, which has the identity matrix I as identity element (the matrix whose diagonal entries are equal to 1 and all other entries are 0). This ring is also an associative R-algebra.
If n > 1, many matrices do not have a multiplicative inverse. For example, a matrix such that all entries of a row (or a column) are 0 does not have an inverse. If it exists, the inverse of a matrix A is denoted A−1, and, thus verifies
A matrix that has an inverse is an invertible matrix. Otherwise, it is a singular matrix.
A product of matrices is invertible if and only if each factor is invertible. In this case, one has
When R is commutative, and, in particular, when it is a field, the determinant of a product is the product of the determinants. As determinants are scalars, and scalars commute, one has thus
The other matrix invariants do not behave as well with products. Nevertheless, if R is commutative, AB and BA have the same trace, the same characteristic polynomial, and the same eigenvalues with the same multiplicities. However, the eigenvectors are generally different if AB ≠ BA.
Powers of a matrix
One may raise a square matrix to any nonnegative integer power multiplying it by itself repeatedly in the same way as for ordinary numbers. That is,
Computing the kth power of a matrix needs k – 1 times the time of a single matrix multiplication, if it is done with the trivial algorithm (repeated multiplication). As this may be very time consuming, one generally prefers using exponentiation by squaring, which requires less than 2 log2k matrix multiplications, and is therefore much more efficient.
An easy case for exponentiation is that of a diagonal matrix. Since the product of diagonal matrices amounts to simply multiplying corresponding diagonal elements together, the kth power of a diagonal matrix is obtained by raising the entries to the power k:
Abstract algebra
The definition of matrix product requires that the entries belong to a semiring, and does not require multiplication of elements of the semiring to be commutative. In many applications, the matrix elements belong to a field, although the tropical semiring is also a common choice for graph shortest path problems. Even in the case of matrices over fields, the product is not commutative in general, although it is associative and is distributive over matrix addition. The identity matrices (which are the square matrices whose entries are zero outside of the main diagonal and 1 on the main diagonal) are identity elements of the matrix product. It follows that the n × n matrices over a ring form a ring, which is noncommutative except if n = 1 and the ground ring is commutative.
A square matrix may have a multiplicative inverse, called an inverse matrix. In the common case where the entries belong to a commutative ring R, a matrix has an inverse if and only if its determinant has a multiplicative inverse in R. The determinant of a product of square matrices is the product of the determinants of the factors. The n × n matrices that have an inverse form a group under matrix multiplication, the subgroups of which are called matrix groups. Many classical groups (including all finite groups) are isomorphic to matrix groups; this is the starting point of the theory of group representations.
Matrices are the morphisms of a category, the category of matrices. The objects are the natural numbers that measure the size of matrices, and the composition of morphisms is matrix multiplication. The source of a morphism is the number of columns of the corresponding matrix, and the target is the number of rows.
Computational complexity
The matrix multiplication algorithm that results from the definition requires, in the worst case, multiplications and
additions of scalars to compute the product of two square n×n matrices. Its computational complexity is therefore
, in a model of computation for which the scalar operations take constant time.
Rather surprisingly, this complexity is not optimal, as shown in 1969 by Volker Strassen, who provided an algorithm, now called Strassen's algorithm, with a complexity of Strassen's algorithm can be parallelized to further improve the performance. As of January 2024[update], the best peer-reviewed matrix multiplication algorithm is by Virginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, and Renfei Zhou and has complexity O(n2.371552). It is not known whether matrix multiplication can be performed in n2 + o(1) time. This would be optimal, since one must read the
elements of a matrix in order to multiply it with another matrix.
Since matrix multiplication forms the basis for many algorithms, and many operations on matrices even have the same complexity as matrix multiplication (up to a multiplicative constant), the computational complexity of matrix multiplication appears throughout numerical linear algebra and theoretical computer science.
Generalizations
Other types of products of matrices include:
- Block matrix operations
- Cracovian product, defined as A ∧ B = BTA
- Frobenius inner product, the dot product of matrices considered as vectors, or, equivalently the sum of the entries of the Hadamard product
- Hadamard product of two matrices of the same size, resulting in a matrix of the same size, which is the product entry-by-entry
- Kronecker product or tensor product, the generalization to any size of the preceding
- Khatri–Rao product and face-splitting product
- Outer product, also called dyadic product or tensor product of two column matrices, which is
- Scalar multiplication
See also
- Matrix calculus, for the interaction of matrix multiplication with operations from calculus
Notes
- Nykamp, Duane. "Multiplying matrices and vectors". Math Insight. Retrieved September 6, 2020.
- O'Connor, John J.; Robertson, Edmund F., "Jacques Philippe Marie Binet", MacTutor History of Mathematics Archive, University of St Andrews
- Lerner, R. G.; Trigg, G. L. (1991). Encyclopaedia of Physics (2nd ed.). VHC publishers. ISBN 978-3-527-26954-9.
- Parker, C. B. (1994). McGraw Hill Encyclopaedia of Physics (2nd ed.). McGraw-Hill. ISBN 978-0-07-051400-3.
- Lipschutz, S.; Lipson, M. (2009). Linear Algebra. Schaum's Outlines (4th ed.). McGraw Hill (USA). pp. 30–31. ISBN 978-0-07-154352-1.
- Riley, K. F.; Hobson, M. P.; Bence, S. J. (2010). Mathematical methods for physics and engineering. Cambridge University Press. ISBN 978-0-521-86153-3.
- Adams, R. A. (1995). Calculus, A Complete Course (3rd ed.). Addison Wesley. p. 627. ISBN 0-201-82823-5.
- Horn, Johnson (2013). Matrix Analysis (2nd ed.). Cambridge University Press. p. 6. ISBN 978-0-521-54823-6.
- Peter Stingl (1996). Mathematik für Fachhochschulen – Technik und Informatik (in German) (5th ed.). Munich: Carl Hanser Verlag. ISBN 3-446-18668-9. Here: Exm.5.4.10, p.205-206
- Weisstein, Eric W. "Matrix Multiplication". mathworld.wolfram.com. Retrieved 2020-09-06.
- Lipcshutz, S.; Lipson, M. (2009). "2". Linear Algebra. Schaum's Outlines (4th ed.). McGraw Hill (USA). ISBN 978-0-07-154352-1.
- Horn, Johnson (2013). "Chapter 0". Matrix Analysis (2nd ed.). Cambridge University Press. ISBN 978-0-521-54823-6.
- Hu, T. C.; Shing, M.-T. (1982). "Computation of Matrix Chain Products, Part I" (PDF). SIAM Journal on Computing. 11 (2): 362–373. CiteSeerX 10.1.1.695.2923. doi:10.1137/0211028. ISSN 0097-5397.
- Hu, T. C.; Shing, M.-T. (1984). "Computation of Matrix Chain Products, Part II" (PDF). SIAM Journal on Computing. 13 (2): 228–251. CiteSeerX 10.1.1.695.4875. doi:10.1137/0213017. ISSN 0097-5397.
- Motwani, Rajeev; Raghavan, Prabhakar (1995). Randomized Algorithms. Cambridge University Press. p. 280. ISBN 9780521474658.
- Volker Strassen (Aug 1969). "Gaussian elimination is not optimal". Numerische Mathematik. 13 (4): 354–356. doi:10.1007/BF02165411. S2CID 121656251.
- C.-C. Chou and Y.-F. Deng and G. Li and Y. Wang (1995). "Parallelizing Strassen's Method for Matrix Multiplication on Distributed-Memory MIMD Architectures" (PDF). Computers Math. Applic. 30 (2): 49–69. doi:10.1016/0898-1221(95)00077-C.
- Vassilevska Williams, Virginia; Xu, Yinzhan; Xu, Zixuan; Zhou, Renfei. New Bounds for Matrix Multiplication: from Alpha to Omega. Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). pp. 3792–3835. arXiv:2307.07970. doi:10.1137/1.9781611977912.134.
- Nadis, Steve (March 7, 2024). "New Breakthrough Brings Matrix Multiplication Closer to Ideal". Retrieved 2024-03-09.
- that is, in time n2+f(n), for some function f with f(n)→0 as n→∞
References
- Henry Cohn, Robert Kleinberg, Balázs Szegedy, and Chris Umans. Group-theoretic Algorithms for Matrix Multiplication. arXiv:math.GR/0511460. Proceedings of the 46th Annual Symposium on Foundations of Computer Science, 23–25 October 2005, Pittsburgh, PA, IEEE Computer Society, pp. 379–388.
- Henry Cohn, Chris Umans. A Group-theoretic Approach to Fast Matrix Multiplication. arXiv:math.GR/0307321. Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science, 11–14 October 2003, Cambridge, MA, IEEE Computer Society, pp. 438–449.
- Coppersmith, D.; Winograd, S. (1990). "Matrix multiplication via arithmetic progressions". J. Symbolic Comput. 9 (3): 251–280. doi:10.1016/s0747-7171(08)80013-2.
- Horn, Roger A.; Johnson, Charles R. (1991), Topics in Matrix Analysis, Cambridge University Press, ISBN 978-0-521-46713-1
- Knuth, D.E., The Art of Computer Programming Volume 2: Seminumerical Algorithms. Addison-Wesley Professional; 3 edition (November 14, 1997). ISBN 978-0-201-89684-8. pp. 501.
- Press, William H.; Flannery, Brian P.; Teukolsky, Saul A.; Vetterling, William T. (2007), Numerical Recipes: The Art of Scientific Computing (3rd ed.), Cambridge University Press, ISBN 978-0-521-88068-8.
- Ran Raz. On the complexity of matrix product. In Proceedings of the thirty-fourth annual ACM symposium on Theory of computing. ACM Press, 2002. doi:10.1145/509907.509932.
- Robinson, Sara, Toward an Optimal Algorithm for Matrix Multiplication, SIAM News 38(9), November 2005. PDF
- Strassen, Volker, Gaussian Elimination is not Optimal, Numer. Math. 13, p. 354–356, 1969.
- Styan, George P. H. (1973), "Hadamard Products and Multivariate Statistical Analysis" (PDF), Linear Algebra and Its Applications, 6: 217–240, doi:10.1016/0024-3795(73)90023-2
- Williams, Virginia Vassilevska (2012-05-19). "Multiplying matrices faster than coppersmith-winograd". Proceedings of the 44th symposium on Theory of Computing - STOC '12. ACM. pp. 887–898. CiteSeerX 10.1.1.297.2680. doi:10.1145/2213977.2214056. ISBN 9781450312455. S2CID 14350287.
In mathematics specifically in linear algebra matrix multiplication is a binary operation that produces a matrix from two matrices For matrix multiplication the number of columns in the first matrix must be equal to the number of rows in the second matrix The resulting matrix known as the matrix product has the number of rows of the first and the number of columns of the second matrix The product of matrices A and B is denoted as AB For matrix multiplication the number of columns in the first matrix must be equal to the number of rows in the second matrix The result matrix has the number of rows of the first and the number of columns of the second matrix Matrix multiplication was first described by the French mathematician Jacques Philippe Marie Binet in 1812 to represent the composition of linear maps that are represented by matrices Matrix multiplication is thus a basic tool of linear algebra and as such has numerous applications in many areas of mathematics as well as in applied mathematics statistics physics economics and engineering Computing matrix products is a central operation in all computational applications of linear algebra NotationThis article will use the following notational conventions matrices are represented by capital letters in bold e g A vectors in lowercase bold e g a and entries of vectors and matrices are italic they are numbers from a field e g A and a Index notation is often the clearest way to express definitions and is used as standard in the literature The entry in row i column j of matrix A is indicated by A ij Aij or aij In contrast a single subscript e g A1 A2 is used to select a matrix not a matrix entry from a collection of matrices DefinitionsMatrix times matrix If A is an m n matrix and B is an n p matrix A a11a12 a1na21a22 a2n am1am2 amn B b11b12 b1pb21b22 b2p bn1bn2 bnp displaystyle mathbf A begin pmatrix a 11 amp a 12 amp cdots amp a 1n a 21 amp a 22 amp cdots amp a 2n vdots amp vdots amp ddots amp vdots a m1 amp a m2 amp cdots amp a mn end pmatrix quad mathbf B begin pmatrix b 11 amp b 12 amp cdots amp b 1p b 21 amp b 22 amp cdots amp b 2p vdots amp vdots amp ddots amp vdots b n1 amp b n2 amp cdots amp b np end pmatrix the matrix product C AB denoted without multiplication signs or dots is defined to be the m p matrixC c11c12 c1pc21c22 c2p cm1cm2 cmp displaystyle mathbf C begin pmatrix c 11 amp c 12 amp cdots amp c 1p c 21 amp c 22 amp cdots amp c 2p vdots amp vdots amp ddots amp vdots c m1 amp c m2 amp cdots amp c mp end pmatrix such that cij ai1b1j ai2b2j ainbnj k 1naikbkj displaystyle c ij a i1 b 1j a i2 b 2j cdots a in b nj sum k 1 n a ik b kj for i 1 m and j 1 p That is the entry cij displaystyle c ij of the product is obtained by multiplying term by term the entries of the i th row of A and the j th column of B and summing these n products In other words cij displaystyle c ij is the dot product of the i th row of A and the j th column of B Therefore AB can also be written as C a11b11 a1nbn1a11b12 a1nbn2 a11b1p a1nbnpa21b11 a2nbn1a21b12 a2nbn2 a21b1p a2nbnp am1b11 amnbn1am1b12 amnbn2 am1b1p amnbnp displaystyle mathbf C begin pmatrix a 11 b 11 cdots a 1n b n1 amp a 11 b 12 cdots a 1n b n2 amp cdots amp a 11 b 1p cdots a 1n b np a 21 b 11 cdots a 2n b n1 amp a 21 b 12 cdots a 2n b n2 amp cdots amp a 21 b 1p cdots a 2n b np vdots amp vdots amp ddots amp vdots a m1 b 11 cdots a mn b n1 amp a m1 b 12 cdots a mn b n2 amp cdots amp a m1 b 1p cdots a mn b np end pmatrix Thus the product AB is defined if and only if the number of columns in A equals the number of rows in B in this case n In most scenarios the entries are numbers but they may be any kind of mathematical objects for which an addition and a multiplication are defined that are associative and such that the addition is commutative and the multiplication is distributive with respect to the addition In particular the entries may be matrices themselves see block matrix Matrix times vector A vector x displaystyle mathbf x of length n displaystyle n can be viewed as a column vector corresponding to an n 1 displaystyle n times 1 matrix X displaystyle mathbf X whose entries are given by Xi1 xi displaystyle mathbf X i1 mathbf x i If A displaystyle mathbf A is an m n displaystyle m times n matrix the matrix times vector product denoted by Ax displaystyle mathbf Ax is then the vector y displaystyle mathbf y that viewed as a column vector is equal to the m 1 displaystyle m times 1 matrix AX displaystyle mathbf AX In index notation this amounts to yi j 1naijxj displaystyle y i sum j 1 n a ij x j One way of looking at this is that the changes from plain vector to column vector and back are assumed and left implicit Vector times matrix Similarly a vector x displaystyle mathbf x of length n displaystyle n can be viewed as a row vector corresponding to a 1 n displaystyle 1 times n matrix To make it clear that a row vector is meant it is customary in this context to represent it as the transpose of a column vector thus one will see notations such as xTA displaystyle mathbf x mathrm T mathbf A The identity xTA ATx T displaystyle mathbf x mathrm T mathbf A mathbf A mathrm T mathbf x mathrm T holds In index notation if A displaystyle mathbf A is an n p displaystyle n times p matrix xTA yT displaystyle mathbf x mathrm T mathbf A mathbf y mathrm T amounts to yk j 1nxjajk displaystyle y k sum j 1 n x j a jk Vector times vector The dot product a b displaystyle mathbf a cdot mathbf b of two vectors a displaystyle mathbf a and b displaystyle mathbf b of equal length is equal to the single entry of the 1 1 displaystyle 1 times 1 matrix resulting from multiplying these vectors as a row and a column vector thus aTb displaystyle mathbf a mathrm T mathbf b or bTa displaystyle mathbf b mathrm T mathbf a which results in the same 1 1 displaystyle 1 times 1 matrix Illustration The figure to the right illustrates diagrammatically the product of two matrices A and B showing how each intersection in the product matrix corresponds to a row of A and a column of B a11a12 a31a32 4 2 matrix b12b13 b22b23 2 3 matrix c12 c33 4 3 matrix displaystyle overset 4 times 2 text matrix begin bmatrix a 11 amp a 12 cdot amp cdot a 31 amp a 32 cdot amp cdot end bmatrix overset 2 times 3 text matrix begin bmatrix cdot amp b 12 amp b 13 cdot amp b 22 amp b 23 end bmatrix overset 4 times 3 text matrix begin bmatrix cdot amp c 12 amp cdot cdot amp cdot amp cdot cdot amp cdot amp c 33 cdot amp cdot amp cdot end bmatrix The values at the intersections marked with circles in figure to the right are c12 a11b12 a12b22c33 a31b13 a32b23 displaystyle begin aligned c 12 amp a 11 b 12 a 12 b 22 c 33 amp a 31 b 13 a 32 b 23 end aligned Fundamental applicationsHistorically matrix multiplication has been introduced for facilitating and clarifying computations in linear algebra This strong relationship between matrix multiplication and linear algebra remains fundamental in all mathematics as well as in physics chemistry engineering and computer science Linear maps If a vector space has a finite basis its vectors are each uniquely represented by a finite sequence of scalars called a coordinate vector whose elements are the coordinates of the vector on the basis These coordinate vectors form another vector space which is isomorphic to the original vector space A coordinate vector is commonly organized as a column matrix also called a column vector which is a matrix with only one column So a column vector represents both a coordinate vector and a vector of the original vector space A linear map A from a vector space of dimension n into a vector space of dimension m maps a column vector x x1x2 xn displaystyle mathbf x begin pmatrix x 1 x 2 vdots x n end pmatrix onto the column vector y A x a11x1 a1nxna21x1 a2nxn am1x1 amnxn displaystyle mathbf y A mathbf x begin pmatrix a 11 x 1 cdots a 1n x n a 21 x 1 cdots a 2n x n vdots a m1 x 1 cdots a mn x n end pmatrix The linear map A is thus defined by the matrix A a11a12 a1na21a22 a2n am1am2 amn displaystyle mathbf A begin pmatrix a 11 amp a 12 amp cdots amp a 1n a 21 amp a 22 amp cdots amp a 2n vdots amp vdots amp ddots amp vdots a m1 amp a m2 amp cdots amp a mn end pmatrix and maps the column vector x displaystyle mathbf x to the matrix product y Ax displaystyle mathbf y mathbf Ax If B is another linear map from the preceding vector space of dimension m into a vector space of dimension p it is represented by a p m displaystyle p times m matrix B displaystyle mathbf B A straightforward computation shows that the matrix of the composite map B A displaystyle B circ A is the matrix product BA displaystyle mathbf BA The general formula B A x B A x displaystyle B circ A mathbf x B A mathbf x that defines the function composition is instanced here as a specific case of associativity of matrix product see Associativity below BA x B Ax BAx displaystyle mathbf BA mathbf x mathbf B mathbf Ax mathbf BAx Geometric rotations Using a Cartesian coordinate system in a Euclidean plane the rotation by an angle a displaystyle alpha around the origin is a linear map More precisely x y cos a sin asin acos a xy displaystyle begin bmatrix x y end bmatrix begin bmatrix cos alpha amp sin alpha sin alpha amp cos alpha end bmatrix begin bmatrix x y end bmatrix where the source point x y displaystyle x y and its image x y displaystyle x y are written as column vectors The composition of the rotation by a displaystyle alpha and that by b displaystyle beta then corresponds to the matrix product cos b sin bsin bcos b cos a sin asin acos a cos bcos a sin bsin a cos bsin a sin bcos asin bcos a cos bsin a sin bsin a cos bcos a cos a b sin a b sin a b cos a b displaystyle begin bmatrix cos beta amp sin beta sin beta amp cos beta end bmatrix begin bmatrix cos alpha amp sin alpha sin alpha amp cos alpha end bmatrix begin bmatrix cos beta cos alpha sin beta sin alpha amp cos beta sin alpha sin beta cos alpha sin beta cos alpha cos beta sin alpha amp sin beta sin alpha cos beta cos alpha end bmatrix begin bmatrix cos alpha beta amp sin alpha beta sin alpha beta amp cos alpha beta end bmatrix where appropriate trigonometric identities are employed for the second equality That is the composition corresponds to the rotation by angle a b displaystyle alpha beta as expected Resource allocation in economics The computation of the bottom left entry of AB displaystyle mathbf AB corresponds to the consideration of all paths highlighted from basic commodity b4 displaystyle b 4 to final product f1 displaystyle f 1 in the production flow graph As an example a fictitious factory uses 4 kinds of basic commodities b1 b2 b3 b4 displaystyle b 1 b 2 b 3 b 4 to produce 3 kinds of intermediate goods m1 m2 m3 displaystyle m 1 m 2 m 3 which in turn are used to produce 3 kinds of final products f1 f2 f3 displaystyle f 1 f 2 f 3 The matrices A 101211011112 displaystyle mathbf A begin pmatrix 1 amp 0 amp 1 2 amp 1 amp 1 0 amp 1 amp 1 1 amp 1 amp 2 end pmatrix and B 121231422 displaystyle mathbf B begin pmatrix 1 amp 2 amp 1 2 amp 3 amp 1 4 amp 2 amp 2 end pmatrix provide the amount of basic commodities needed for a given amount of intermediate goods and the amount of intermediate goods needed for a given amount of final products respectively For example to produce one unit of intermediate good m1 displaystyle m 1 one unit of basic commodity b1 displaystyle b 1 two units of b2 displaystyle b 2 no units of b3 displaystyle b 3 and one unit of b4 displaystyle b 4 are needed corresponding to the first column of A displaystyle mathbf A Using matrix multiplication compute AB 543895 6531196 displaystyle mathbf AB begin pmatrix 5 amp 4 amp 3 8 amp 9 amp 5 6 amp 5 amp 3 11 amp 9 amp 6 end pmatrix this matrix directly provides the amounts of basic commodities needed for given amounts of final goods For example the bottom left entry of AB displaystyle mathbf AB is computed as 1 1 1 2 2 4 11 displaystyle 1 cdot 1 1 cdot 2 2 cdot 4 11 reflecting that 11 displaystyle 11 units of b4 displaystyle b 4 are needed to produce one unit of f1 displaystyle f 1 Indeed one b4 displaystyle b 4 unit is needed for m1 displaystyle m 1 one for each of two m2 displaystyle m 2 and 2 displaystyle 2 for each of the four m3 displaystyle m 3 units that go into the f1 displaystyle f 1 unit see picture In order to produce e g 100 units of the final product f1 displaystyle f 1 80 units of f2 displaystyle f 2 and 60 units of f3 displaystyle f 3 the necessary amounts of basic goods can be computed as AB 1008060 1000182011802180 displaystyle mathbf AB begin pmatrix 100 80 60 end pmatrix begin pmatrix 1000 1820 1180 2180 end pmatrix that is 1000 displaystyle 1000 units of b1 displaystyle b 1 1820 displaystyle 1820 units of b2 displaystyle b 2 1180 displaystyle 1180 units of b3 displaystyle b 3 2180 displaystyle 2180 units of b4 displaystyle b 4 are needed Similarly the product matrix AB displaystyle mathbf AB can be used to compute the needed amounts of basic goods for other final good amount data System of linear equations The general form of a system of linear equations is a11x1 a1nxn b1 a21x1 a2nxn b2 am1x1 amnxn bm displaystyle begin matrix a 11 x 1 cdots a 1n x n b 1 a 21 x 1 cdots a 2n x n b 2 vdots a m1 x 1 cdots a mn x n b m end matrix Using same notation as above such a system is equivalent with the single matrix equation Ax b displaystyle mathbf Ax mathbf b Dot product bilinear form and sesquilinear form The dot product of two column vectors is the unique entry of the matrix product xTy displaystyle mathbf x mathsf T mathbf y where xT displaystyle mathbf x mathsf T is the row vector obtained by transposing x displaystyle mathbf x As usual a 1 1 matrix is identified with its unique entry More generally any bilinear form over a vector space of finite dimension may be expressed as a matrix product xTAy displaystyle mathbf x mathsf T mathbf Ay and any sesquilinear form may be expressed as x Ay displaystyle mathbf x dagger mathbf Ay where x displaystyle mathbf x dagger denotes the conjugate transpose of x displaystyle mathbf x conjugate of the transpose or equivalently transpose of the conjugate General propertiesMatrix multiplication shares some properties with usual multiplication However matrix multiplication is not defined if the number of columns of the first factor differs from the number of rows of the second factor and it is non commutative even when the product remains defined after changing the order of the factors Non commutativity An operation is commutative if given two elements A and B such that the product AB displaystyle mathbf A mathbf B is defined then BA displaystyle mathbf B mathbf A is also defined and AB BA displaystyle mathbf A mathbf B mathbf B mathbf A If A and B are matrices of respective sizes m n displaystyle m times n and p q displaystyle p times q then AB displaystyle mathbf A mathbf B is defined if n p displaystyle n p and BA displaystyle mathbf B mathbf A is defined if m q displaystyle m q Therefore if one of the products is defined the other one need not be defined If m q n p displaystyle m q neq n p the two products are defined but have different sizes thus they cannot be equal Only if m q n p displaystyle m q n p that is if A and B are square matrices of the same size are both products defined and of the same size Even in this case one has in general AB BA displaystyle mathbf A mathbf B neq mathbf B mathbf A For example 0100 0010 1000 displaystyle begin pmatrix 0 amp 1 0 amp 0 end pmatrix begin pmatrix 0 amp 0 1 amp 0 end pmatrix begin pmatrix 1 amp 0 0 amp 0 end pmatrix but 0010 0100 0001 displaystyle begin pmatrix 0 amp 0 1 amp 0 end pmatrix begin pmatrix 0 amp 1 0 amp 0 end pmatrix begin pmatrix 0 amp 0 0 amp 1 end pmatrix This example may be expanded for showing that if A is a n n displaystyle n times n matrix with entries in a field F then AB BA displaystyle mathbf A mathbf B mathbf B mathbf A for every n n displaystyle n times n matrix B with entries in F if and only if A cI displaystyle mathbf A c mathbf I where c F displaystyle c in F and I is the n n displaystyle n times n identity matrix If instead of a field the entries are supposed to belong to a ring then one must add the condition that c belongs to the center of the ring One special case where commutativity does occur is when D and E are two square diagonal matrices of the same size then DE ED Again if the matrices are over a general ring rather than a field the corresponding entries in each must also commute with each other for this to hold Distributivity The matrix product is distributive with respect to matrix addition That is if A B C D are matrices of respective sizes m n n p n p and p q one has left distributivity A B C AB AC displaystyle mathbf A mathbf B mathbf C mathbf AB mathbf AC and right distributivity B C D BD CD displaystyle mathbf B mathbf C mathbf D mathbf BD mathbf CD This results from the distributivity for coefficients by kaik bkj ckj kaikbkj kaikckj displaystyle sum k a ik b kj c kj sum k a ik b kj sum k a ik c kj k bik cik dkj kbikdkj kcikdkj displaystyle sum k b ik c ik d kj sum k b ik d kj sum k c ik d kj Product with a scalar If A is a matrix and c a scalar then the matrices cA displaystyle c mathbf A and Ac displaystyle mathbf A c are obtained by left or right multiplying all entries of A by c If the scalars have the commutative property then cA Ac displaystyle c mathbf A mathbf A c If the product AB displaystyle mathbf AB is defined that is the number of columns of A equals the number of rows of B then c AB cA B displaystyle c mathbf AB c mathbf A mathbf B and AB c A Bc displaystyle mathbf A mathbf B c mathbf A mathbf B c If the scalars have the commutative property then all four matrices are equal More generally all four are equal if c belongs to the center of a ring containing the entries of the matrices because in this case cX Xc for all matrices X These properties result from the bilinearity of the product of scalars c kaikbkj k caik bkj displaystyle c left sum k a ik b kj right sum k ca ik b kj kaikbkj c kaik bkjc displaystyle left sum k a ik b kj right c sum k a ik b kj c Transpose If the scalars have the commutative property the transpose of a product of matrices is the product in the reverse order of the transposes of the factors That is AB T BTAT displaystyle mathbf AB mathsf T mathbf B mathsf T mathbf A mathsf T where T denotes the transpose that is the interchange of rows and columns This identity does not hold for noncommutative entries since the order between the entries of A and B is reversed when one expands the definition of the matrix product Complex conjugate If A and B have complex entries then AB A B displaystyle mathbf AB mathbf A mathbf B where denotes the entry wise complex conjugate of a matrix This results from applying to the definition of matrix product the fact that the conjugate of a sum is the sum of the conjugates of the summands and the conjugate of a product is the product of the conjugates of the factors Transposition acts on the indices of the entries while conjugation acts independently on the entries themselves It results that if A and B have complex entries one has AB B A displaystyle mathbf AB dagger mathbf B dagger mathbf A dagger where denotes the conjugate transpose conjugate of the transpose or equivalently transpose of the conjugate Associativity Given three matrices A B and C the products AB C and A BC are defined if and only if the number of columns of A equals the number of rows of B and the number of columns of B equals the number of rows of C in particular if one of the products is defined then the other is also defined In this case one has the associative property AB C A BC displaystyle mathbf AB mathbf C mathbf A mathbf BC As for any associative operation this allows omitting parentheses and writing the above products as ABC displaystyle mathbf ABC This extends naturally to the product of any number of matrices provided that the dimensions match That is if A1 A2 An are matrices such that the number of columns of Ai equals the number of rows of Ai 1 for i 1 n 1 then the product i 1nAi A1A2 An displaystyle prod i 1 n mathbf A i mathbf A 1 mathbf A 2 cdots mathbf A n is defined and does not depend on the order of the multiplications if the order of the matrices is kept fixed These properties may be proved by straightforward but complicated summation manipulations This result also follows from the fact that matrices represent linear maps Therefore the associative property of matrices is simply a specific case of the associative property of function composition Computational complexity depends on parenthesization Although the result of a sequence of matrix products does not depend on the order of operation provided that the order of the matrices is not changed the computational complexity may depend dramatically on this order For example if A B and C are matrices of respective sizes 10 30 30 5 5 60 computing AB C needs 10 30 5 10 5 60 4 500 multiplications while computing A BC needs 30 5 60 10 30 60 27 000 multiplications Algorithms have been designed for choosing the best order of products see Matrix chain multiplication When the number n of matrices increases it has been shown that the choice of the best order has a complexity of O nlog n displaystyle O n log n Application to similarity Any invertible matrix P displaystyle mathbf P defines a similarity transformation on square matrices of the same size as P displaystyle mathbf P SP A P 1AP displaystyle S mathbf P mathbf A mathbf P 1 mathbf A mathbf P Similarity transformations map product to products that is SP AB SP A SP B displaystyle S mathbf P mathbf AB S mathbf P mathbf A S mathbf P mathbf B In fact one has P 1 AB P P 1A PP 1 BP P 1AP P 1BP displaystyle mathbf P 1 mathbf AB mathbf P mathbf P 1 mathbf A mathbf P mathbf P 1 mathbf B mathbf P mathbf P 1 mathbf A mathbf P mathbf P 1 mathbf B mathbf P Square matricesLet us denote Mn R displaystyle mathcal M n R the set of n n square matrices with entries in a ring R which in practice is often a field In Mn R displaystyle mathcal M n R the product is defined for every pair of matrices This makes Mn R displaystyle mathcal M n R a ring which has the identity matrix I as identity element the matrix whose diagonal entries are equal to 1 and all other entries are 0 This ring is also an associative R algebra If n gt 1 many matrices do not have a multiplicative inverse For example a matrix such that all entries of a row or a column are 0 does not have an inverse If it exists the inverse of a matrix A is denoted A 1 and thus verifies AA 1 A 1A I displaystyle mathbf A mathbf A 1 mathbf A 1 mathbf A mathbf I A matrix that has an inverse is an invertible matrix Otherwise it is a singular matrix A product of matrices is invertible if and only if each factor is invertible In this case one has AB 1 B 1A 1 displaystyle mathbf A mathbf B 1 mathbf B 1 mathbf A 1 When R is commutative and in particular when it is a field the determinant of a product is the product of the determinants As determinants are scalars and scalars commute one has thus det AB det BA det A det B displaystyle det mathbf AB det mathbf BA det mathbf A det mathbf B The other matrix invariants do not behave as well with products Nevertheless if R is commutative AB and BA have the same trace the same characteristic polynomial and the same eigenvalues with the same multiplicities However the eigenvectors are generally different if AB BA Powers of a matrix One may raise a square matrix to any nonnegative integer power multiplying it by itself repeatedly in the same way as for ordinary numbers That is A0 I displaystyle mathbf A 0 mathbf I A1 A displaystyle mathbf A 1 mathbf A Ak AA A k times displaystyle mathbf A k underbrace mathbf A mathbf A cdots mathbf A k text times Computing the k th power of a matrix needs k 1 times the time of a single matrix multiplication if it is done with the trivial algorithm repeated multiplication As this may be very time consuming one generally prefers using exponentiation by squaring which requires less than 2 log2k matrix multiplications and is therefore much more efficient An easy case for exponentiation is that of a diagonal matrix Since the product of diagonal matrices amounts to simply multiplying corresponding diagonal elements together the k th power of a diagonal matrix is obtained by raising the entries to the power k a110 00a22 0 00 ann k a11k0 00a22k 0 00 annk displaystyle begin bmatrix a 11 amp 0 amp cdots amp 0 0 amp a 22 amp cdots amp 0 vdots amp vdots amp ddots amp vdots 0 amp 0 amp cdots amp a nn end bmatrix k begin bmatrix a 11 k amp 0 amp cdots amp 0 0 amp a 22 k amp cdots amp 0 vdots amp vdots amp ddots amp vdots 0 amp 0 amp cdots amp a nn k end bmatrix Abstract algebraThe definition of matrix product requires that the entries belong to a semiring and does not require multiplication of elements of the semiring to be commutative In many applications the matrix elements belong to a field although the tropical semiring is also a common choice for graph shortest path problems Even in the case of matrices over fields the product is not commutative in general although it is associative and is distributive over matrix addition The identity matrices which are the square matrices whose entries are zero outside of the main diagonal and 1 on the main diagonal are identity elements of the matrix product It follows that the n n matrices over a ring form a ring which is noncommutative except if n 1 and the ground ring is commutative A square matrix may have a multiplicative inverse called an inverse matrix In the common case where the entries belong to a commutative ring R a matrix has an inverse if and only if its determinant has a multiplicative inverse in R The determinant of a product of square matrices is the product of the determinants of the factors The n n matrices that have an inverse form a group under matrix multiplication the subgroups of which are called matrix groups Many classical groups including all finite groups are isomorphic to matrix groups this is the starting point of the theory of group representations Matrices are the morphisms of a category the category of matrices The objects are the natural numbers that measure the size of matrices and the composition of morphisms is matrix multiplication The source of a morphism is the number of columns of the corresponding matrix and the target is the number of rows Computational complexityImprovement of estimates of exponent w over time for the computational complexity of matrix multiplication O nw displaystyle O n omega The matrix multiplication algorithm that results from the definition requires in the worst case n3 displaystyle n 3 multiplications and n 1 n2 displaystyle n 1 n 2 additions of scalars to compute the product of two square n n matrices Its computational complexity is therefore O n3 displaystyle O n 3 in a model of computation for which the scalar operations take constant time Rather surprisingly this complexity is not optimal as shown in 1969 by Volker Strassen who provided an algorithm now called Strassen s algorithm with a complexity of O nlog2 7 O n2 8074 displaystyle O n log 2 7 approx O n 2 8074 Strassen s algorithm can be parallelized to further improve the performance As of January 2024 update the best peer reviewed matrix multiplication algorithm is by Virginia Vassilevska Williams Yinzhan Xu Zixuan Xu and Renfei Zhou and has complexity O n2 371552 It is not known whether matrix multiplication can be performed in n2 o 1 time This would be optimal since one must read the n2 displaystyle n 2 elements of a matrix in order to multiply it with another matrix Since matrix multiplication forms the basis for many algorithms and many operations on matrices even have the same complexity as matrix multiplication up to a multiplicative constant the computational complexity of matrix multiplication appears throughout numerical linear algebra and theoretical computer science GeneralizationsOther types of products of matrices include Block matrix operations Cracovian product defined as A B BTA Frobenius inner product the dot product of matrices considered as vectors or equivalently the sum of the entries of the Hadamard product Hadamard product of two matrices of the same size resulting in a matrix of the same size which is the product entry by entry Kronecker product or tensor product the generalization to any size of the preceding Khatri Rao product and face splitting product Outer product also called dyadic product or tensor product of two column matrices which is abT displaystyle mathbf a mathbf b mathsf T Scalar multiplicationSee alsoMatrix calculus for the interaction of matrix multiplication with operations from calculusNotesNykamp Duane Multiplying matrices and vectors Math Insight Retrieved September 6 2020 O Connor John J Robertson Edmund F Jacques Philippe Marie Binet MacTutor History of Mathematics Archive University of St Andrews Lerner R G Trigg G L 1991 Encyclopaedia of Physics 2nd ed VHC publishers ISBN 978 3 527 26954 9 Parker C B 1994 McGraw Hill Encyclopaedia of Physics 2nd ed McGraw Hill ISBN 978 0 07 051400 3 Lipschutz S Lipson M 2009 Linear Algebra Schaum s Outlines 4th ed McGraw Hill USA pp 30 31 ISBN 978 0 07 154352 1 Riley K F Hobson M P Bence S J 2010 Mathematical methods for physics and engineering Cambridge University Press ISBN 978 0 521 86153 3 Adams R A 1995 Calculus A Complete Course 3rd ed Addison Wesley p 627 ISBN 0 201 82823 5 Horn Johnson 2013 Matrix Analysis 2nd ed Cambridge University Press p 6 ISBN 978 0 521 54823 6 Peter Stingl 1996 Mathematik fur Fachhochschulen Technik und Informatik in German 5th ed Munich Carl Hanser Verlag ISBN 3 446 18668 9 Here Exm 5 4 10 p 205 206 Weisstein Eric W Matrix Multiplication mathworld wolfram com Retrieved 2020 09 06 Lipcshutz S Lipson M 2009 2 Linear Algebra Schaum s Outlines 4th ed McGraw Hill USA ISBN 978 0 07 154352 1 Horn Johnson 2013 Chapter 0 Matrix Analysis 2nd ed Cambridge University Press ISBN 978 0 521 54823 6 Hu T C Shing M T 1982 Computation of Matrix Chain Products Part I PDF SIAM Journal on Computing 11 2 362 373 CiteSeerX 10 1 1 695 2923 doi 10 1137 0211028 ISSN 0097 5397 Hu T C Shing M T 1984 Computation of Matrix Chain Products Part II PDF SIAM Journal on Computing 13 2 228 251 CiteSeerX 10 1 1 695 4875 doi 10 1137 0213017 ISSN 0097 5397 Motwani Rajeev Raghavan Prabhakar 1995 Randomized Algorithms Cambridge University Press p 280 ISBN 9780521474658 Volker Strassen Aug 1969 Gaussian elimination is not optimal Numerische Mathematik 13 4 354 356 doi 10 1007 BF02165411 S2CID 121656251 C C Chou and Y F Deng and G Li and Y Wang 1995 Parallelizing Strassen s Method for Matrix Multiplication on Distributed Memory MIMD Architectures PDF Computers Math Applic 30 2 49 69 doi 10 1016 0898 1221 95 00077 C Vassilevska Williams Virginia Xu Yinzhan Xu Zixuan Zhou Renfei New Bounds for Matrix Multiplication from Alpha to Omega Proceedings of the 2024 Annual ACM SIAM Symposium on Discrete Algorithms SODA pp 3792 3835 arXiv 2307 07970 doi 10 1137 1 9781611977912 134 Nadis Steve March 7 2024 New Breakthrough Brings Matrix Multiplication Closer to Ideal Retrieved 2024 03 09 that is in time n2 f n for some function f with f n 0 as n ReferencesWikimedia Commons has media related to matrix multiplication The Wikibook Linear Algebra has a page on the topic of Matrix multiplication The Wikibook Applicable Mathematics has a page on the topic of Multiplying Matrices Henry Cohn Robert Kleinberg Balazs Szegedy and Chris Umans Group theoretic Algorithms for Matrix Multiplication arXiv math GR 0511460 Proceedings of the 46th Annual Symposium on Foundations of Computer Science 23 25 October 2005 Pittsburgh PA IEEE Computer Society pp 379 388 Henry Cohn Chris Umans A Group theoretic Approach to Fast Matrix Multiplication arXiv math GR 0307321 Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science 11 14 October 2003 Cambridge MA IEEE Computer Society pp 438 449 Coppersmith D Winograd S 1990 Matrix multiplication via arithmetic progressions J Symbolic Comput 9 3 251 280 doi 10 1016 s0747 7171 08 80013 2 Horn Roger A Johnson Charles R 1991 Topics in Matrix Analysis Cambridge University Press ISBN 978 0 521 46713 1 Knuth D E The Art of Computer Programming Volume 2 Seminumerical Algorithms Addison Wesley Professional 3 edition November 14 1997 ISBN 978 0 201 89684 8 pp 501 Press William H Flannery Brian P Teukolsky Saul A Vetterling William T 2007 Numerical Recipes The Art of Scientific Computing 3rd ed Cambridge University Press ISBN 978 0 521 88068 8 Ran Raz On the complexity of matrix product In Proceedings of the thirty fourth annual ACM symposium on Theory of computing ACM Press 2002 doi 10 1145 509907 509932 Robinson Sara Toward an Optimal Algorithm for Matrix Multiplication SIAM News 38 9 November 2005 PDF Strassen Volker Gaussian Elimination is not Optimal Numer Math 13 p 354 356 1969 Styan George P H 1973 Hadamard Products and Multivariate Statistical Analysis PDF Linear Algebra and Its Applications 6 217 240 doi 10 1016 0024 3795 73 90023 2 Williams Virginia Vassilevska 2012 05 19 Multiplying matrices faster than coppersmith winograd Proceedings of the 44th symposium on Theory of Computing STOC 12 ACM pp 887 898 CiteSeerX 10 1 1 297 2680 doi 10 1145 2213977 2214056 ISBN 9781450312455 S2CID 14350287