Search for a tool
Matrix Product

Tool to calculate matrix products. Matrix product algebra consists of the multiplication of matrices (square or rectangular).

Results

Matrix Product -

Tag(s) : Matrix

Share
Share
dCode and you

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Matrix Product tool. Thank you.

Matrix Product

Sponsored ads

Matrix Product

Product of 2 Matrices


Loading...
(if this message do not disappear, try to refresh this page)

Loading...
(if this message do not disappear, try to refresh this page)

Product of a Matrix by a Scalar (Number)


Loading...
(if this message do not disappear, try to refresh this page)

Alphabet


Loading...
(if this message do not disappear, try to refresh this page)

Loading...
(if this message do not disappear, try to refresh this page)

Tool to calculate matrix products. Matrix product algebra consists of the multiplication of matrices (square or rectangular).

Answers to Questions

How to multiply 2 matrices?

Take $ M_1=[a_{ij}] $ a matrix of $ m $ lines and $ n $ columns and $ M_2=[b_{ij}] $ a matrix of $ n $ lines and $ p $ columns (2x2,2x3,3x2,3x3,etc.). The matrix product $ M_1.M_2 = [c_{ij}] $ is a matrix of $ m $ lines and $ p $ columns, with: $$ \forall i, j : c_{ij} = \sum_{k=1}^n a_{ik}b_{kj} $$

Example: $$ \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \cdot \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 1 \times 1 + 2 \times 0 & 1 \times 0 + 2 \times 1 \\ 3 \times 1 + 4 \times 0 & 3 \times 0 + 4 \times 1 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} $$

The order of the operands matters with matrix computations, so $$ M_1.M_2 \neq M_2.M_1 $$

How to multiply a matrix by a scalar?

The product of the matrix $ M=[a_{ij}] $ by a scalar (number) $ \lambda $ is a matrix of the same size than the initial matrix $ M $, with each items of the matrix multiplied by $ \lambda $.

$$ \lambda M = [ \lambda a_{ij} ] $$

What are matrix multiplication properties?

Associativity : $$ A \times (B \times C) = (A \times B) \times C $$

Distributivity : $$ A \times (B + C) = A \times B + A \times C $$

$$ (A + B) \times C = A \times C + B \times C $$

$$ \lambda (A \times B) = (\lambda A) \times B = A \times (\lambda B) $$

How to multiply 2 matrices of incompatible shapes?

There is a matrix product compatible with any matrix sizes: the Kronecker product.

Source code

dCode retains ownership of the source code of the script Matrix Product online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Matrix Product script for offline use on PC, iPhone or Android, ask for price quote on contact page !

Questions / Comments

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Matrix Product tool. Thank you.


Source : https://www.dcode.fr/matrix-multiplication
© 2019 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode
Feedback