Outer Product of Two Matrices?
$begingroup$
How would I go about calculating the outer product of two matrices of 2 dimensions each? From what I can find, outer product seems to be the product of two vectors, $u$ and the transpose of another vector, $v^T$.
As an example, how would I calculate the outer product of $A$ and $B$, where
$$A = begin{pmatrix}1 & 2 \ 3 & 4end{pmatrix} qquad B = begin{pmatrix}5 & 6 & 7 \ 8 & 9 & 10end{pmatrix}$$
matrices tensor-products
$endgroup$
add a comment |
$begingroup$
How would I go about calculating the outer product of two matrices of 2 dimensions each? From what I can find, outer product seems to be the product of two vectors, $u$ and the transpose of another vector, $v^T$.
As an example, how would I calculate the outer product of $A$ and $B$, where
$$A = begin{pmatrix}1 & 2 \ 3 & 4end{pmatrix} qquad B = begin{pmatrix}5 & 6 & 7 \ 8 & 9 & 10end{pmatrix}$$
matrices tensor-products
$endgroup$
add a comment |
$begingroup$
How would I go about calculating the outer product of two matrices of 2 dimensions each? From what I can find, outer product seems to be the product of two vectors, $u$ and the transpose of another vector, $v^T$.
As an example, how would I calculate the outer product of $A$ and $B$, where
$$A = begin{pmatrix}1 & 2 \ 3 & 4end{pmatrix} qquad B = begin{pmatrix}5 & 6 & 7 \ 8 & 9 & 10end{pmatrix}$$
matrices tensor-products
$endgroup$
How would I go about calculating the outer product of two matrices of 2 dimensions each? From what I can find, outer product seems to be the product of two vectors, $u$ and the transpose of another vector, $v^T$.
As an example, how would I calculate the outer product of $A$ and $B$, where
$$A = begin{pmatrix}1 & 2 \ 3 & 4end{pmatrix} qquad B = begin{pmatrix}5 & 6 & 7 \ 8 & 9 & 10end{pmatrix}$$
matrices tensor-products
matrices tensor-products
edited Oct 14 '14 at 16:25
davcha
1,062417
1,062417
asked Oct 14 '14 at 16:17
user2049004user2049004
3441313
3441313
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
The outer product usually refers to the tensor product of vectors.
If you want something like the outer product between a $m times n$ matrix $A$ and a $ptimes q$ matrix $B$, you can see the generalization of outer product, which is the kronecker product. It is noted $A otimes B$ and equals:
$$A otimes B = begin{pmatrix}a_{11}B & dots & a_{1n}B \ vdots & ddots & vdots \ a_{m1}B & dots & a_{mn}Bend{pmatrix}$$
$endgroup$
add a comment |
$begingroup$
To extend davcha's answer, for your specific example, you would get:
$$Aotimes B=
left(
begin{array}{cc}
left(
begin{array}{ccc}
5 & 6 & 7 \
8 & 9 & 10 \
end{array}
right) & left(
begin{array}{ccc}
10 & 12 & 14 \
16 & 18 & 20 \
end{array}
right) \
left(
begin{array}{ccc}
15 & 18 & 21 \
24 & 27 & 30 \
end{array}
right) & left(
begin{array}{ccc}
20 & 24 & 28 \
32 & 36 & 40 \
end{array}
right) \
end{array}
right)
$$
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f973559%2fouter-product-of-two-matrices%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The outer product usually refers to the tensor product of vectors.
If you want something like the outer product between a $m times n$ matrix $A$ and a $ptimes q$ matrix $B$, you can see the generalization of outer product, which is the kronecker product. It is noted $A otimes B$ and equals:
$$A otimes B = begin{pmatrix}a_{11}B & dots & a_{1n}B \ vdots & ddots & vdots \ a_{m1}B & dots & a_{mn}Bend{pmatrix}$$
$endgroup$
add a comment |
$begingroup$
The outer product usually refers to the tensor product of vectors.
If you want something like the outer product between a $m times n$ matrix $A$ and a $ptimes q$ matrix $B$, you can see the generalization of outer product, which is the kronecker product. It is noted $A otimes B$ and equals:
$$A otimes B = begin{pmatrix}a_{11}B & dots & a_{1n}B \ vdots & ddots & vdots \ a_{m1}B & dots & a_{mn}Bend{pmatrix}$$
$endgroup$
add a comment |
$begingroup$
The outer product usually refers to the tensor product of vectors.
If you want something like the outer product between a $m times n$ matrix $A$ and a $ptimes q$ matrix $B$, you can see the generalization of outer product, which is the kronecker product. It is noted $A otimes B$ and equals:
$$A otimes B = begin{pmatrix}a_{11}B & dots & a_{1n}B \ vdots & ddots & vdots \ a_{m1}B & dots & a_{mn}Bend{pmatrix}$$
$endgroup$
The outer product usually refers to the tensor product of vectors.
If you want something like the outer product between a $m times n$ matrix $A$ and a $ptimes q$ matrix $B$, you can see the generalization of outer product, which is the kronecker product. It is noted $A otimes B$ and equals:
$$A otimes B = begin{pmatrix}a_{11}B & dots & a_{1n}B \ vdots & ddots & vdots \ a_{m1}B & dots & a_{mn}Bend{pmatrix}$$
edited Oct 14 '14 at 16:39
answered Oct 14 '14 at 16:34
davchadavcha
1,062417
1,062417
add a comment |
add a comment |
$begingroup$
To extend davcha's answer, for your specific example, you would get:
$$Aotimes B=
left(
begin{array}{cc}
left(
begin{array}{ccc}
5 & 6 & 7 \
8 & 9 & 10 \
end{array}
right) & left(
begin{array}{ccc}
10 & 12 & 14 \
16 & 18 & 20 \
end{array}
right) \
left(
begin{array}{ccc}
15 & 18 & 21 \
24 & 27 & 30 \
end{array}
right) & left(
begin{array}{ccc}
20 & 24 & 28 \
32 & 36 & 40 \
end{array}
right) \
end{array}
right)
$$
$endgroup$
add a comment |
$begingroup$
To extend davcha's answer, for your specific example, you would get:
$$Aotimes B=
left(
begin{array}{cc}
left(
begin{array}{ccc}
5 & 6 & 7 \
8 & 9 & 10 \
end{array}
right) & left(
begin{array}{ccc}
10 & 12 & 14 \
16 & 18 & 20 \
end{array}
right) \
left(
begin{array}{ccc}
15 & 18 & 21 \
24 & 27 & 30 \
end{array}
right) & left(
begin{array}{ccc}
20 & 24 & 28 \
32 & 36 & 40 \
end{array}
right) \
end{array}
right)
$$
$endgroup$
add a comment |
$begingroup$
To extend davcha's answer, for your specific example, you would get:
$$Aotimes B=
left(
begin{array}{cc}
left(
begin{array}{ccc}
5 & 6 & 7 \
8 & 9 & 10 \
end{array}
right) & left(
begin{array}{ccc}
10 & 12 & 14 \
16 & 18 & 20 \
end{array}
right) \
left(
begin{array}{ccc}
15 & 18 & 21 \
24 & 27 & 30 \
end{array}
right) & left(
begin{array}{ccc}
20 & 24 & 28 \
32 & 36 & 40 \
end{array}
right) \
end{array}
right)
$$
$endgroup$
To extend davcha's answer, for your specific example, you would get:
$$Aotimes B=
left(
begin{array}{cc}
left(
begin{array}{ccc}
5 & 6 & 7 \
8 & 9 & 10 \
end{array}
right) & left(
begin{array}{ccc}
10 & 12 & 14 \
16 & 18 & 20 \
end{array}
right) \
left(
begin{array}{ccc}
15 & 18 & 21 \
24 & 27 & 30 \
end{array}
right) & left(
begin{array}{ccc}
20 & 24 & 28 \
32 & 36 & 40 \
end{array}
right) \
end{array}
right)
$$
answered Nov 1 '15 at 13:58
Sandu UrsuSandu Ursu
183114
183114
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f973559%2fouter-product-of-two-matrices%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown