Interpreting triple product summation as matrix multiplication












3












$begingroup$


I've been wondering about this for a little while and I can't seem to come up with a definite answer. I'm leaning towards "this is not possible", but I figured I'd ask around to see if anybody else has an answer.



Problem statement



Given the expression (where $a_{ij}, b_{ij}$ and $c_{ij}$ are all real numbers)
$$sum_{i} a_{ij}b_{ik}c_{il}
$$
can this be expressed in terms of matrix/tensor multiplication? If there were only two terms, such as in



$$sum_i a_{ij} b_{ik}= (A^TB)_{jk}$$



then this would be a straightforward problem.



If there isn't a way to map this to a matrix multiplication problem, is there some other some other computationally efficient procedure for calculating such a summation with triple/quadruple terms? Or has anybody encountered some literature/terms for further research?



Literature



Equations of this nature come up all the time in the context of Corner Transfer Matrix Renormalisation Group (CTMRG). For example, equations (1) and (2) in https://arxiv.org/pdf/1107.1677.pdf










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    I think a solution, if there exist one, is by using Kronecker product operations.
    $endgroup$
    – Jean Marie
    Dec 5 '18 at 7:50






  • 2




    $begingroup$
    Interesting. I can form a matrix $Aotimes B$ using the Kronecker product. A subset of this matrix will be elements of the form $a_{ij}b_{ik}$. If I pick out those elements and form a matrix $widetilde{{AB}}$ with that, the remaining product will correspond to $sum_i widetilde{AB}_{ijk}c_{il}$, which is a standard matrix product. However, forming the full Kronecker product is a bit overkill if I just need a small subset. I wonder if there's a way to setup or trim the matrices $A$ and $B$ so that the Kronecker operation only computes what I need.
    $endgroup$
    – Zxv
    Dec 12 '18 at 3:10






  • 1




    $begingroup$
    I would also suggest trying to use partial trace operator. It sounds like it could be useful here.
    $endgroup$
    – Alex Smart
    Dec 12 '18 at 7:52










  • $begingroup$
    I thought I had a solution but I have erased it. A remark : let $M$ having all its entries $0$ except $M_{jk}=1$. $A^TMB$ is a matricial expression for your $(A^TB)_{jk}$. If $N$ is the same kind of matrix as $M$ but for indices $l$ and $m$, we could consider $(A^TMB)^TNC$...
    $endgroup$
    – Jean Marie
    Dec 12 '18 at 8:27










  • $begingroup$
    If I understand correctly your input are three matrices, but your output is a three-dimensional cube of numbers, where the number in position (j, k, l) of the cube is the outcome of the sum from your post for fixed j, k and l?
    $endgroup$
    – Vincent
    Dec 12 '18 at 12:50
















3












$begingroup$


I've been wondering about this for a little while and I can't seem to come up with a definite answer. I'm leaning towards "this is not possible", but I figured I'd ask around to see if anybody else has an answer.



Problem statement



Given the expression (where $a_{ij}, b_{ij}$ and $c_{ij}$ are all real numbers)
$$sum_{i} a_{ij}b_{ik}c_{il}
$$
can this be expressed in terms of matrix/tensor multiplication? If there were only two terms, such as in



$$sum_i a_{ij} b_{ik}= (A^TB)_{jk}$$



then this would be a straightforward problem.



If there isn't a way to map this to a matrix multiplication problem, is there some other some other computationally efficient procedure for calculating such a summation with triple/quadruple terms? Or has anybody encountered some literature/terms for further research?



Literature



Equations of this nature come up all the time in the context of Corner Transfer Matrix Renormalisation Group (CTMRG). For example, equations (1) and (2) in https://arxiv.org/pdf/1107.1677.pdf










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    I think a solution, if there exist one, is by using Kronecker product operations.
    $endgroup$
    – Jean Marie
    Dec 5 '18 at 7:50






  • 2




    $begingroup$
    Interesting. I can form a matrix $Aotimes B$ using the Kronecker product. A subset of this matrix will be elements of the form $a_{ij}b_{ik}$. If I pick out those elements and form a matrix $widetilde{{AB}}$ with that, the remaining product will correspond to $sum_i widetilde{AB}_{ijk}c_{il}$, which is a standard matrix product. However, forming the full Kronecker product is a bit overkill if I just need a small subset. I wonder if there's a way to setup or trim the matrices $A$ and $B$ so that the Kronecker operation only computes what I need.
    $endgroup$
    – Zxv
    Dec 12 '18 at 3:10






  • 1




    $begingroup$
    I would also suggest trying to use partial trace operator. It sounds like it could be useful here.
    $endgroup$
    – Alex Smart
    Dec 12 '18 at 7:52










  • $begingroup$
    I thought I had a solution but I have erased it. A remark : let $M$ having all its entries $0$ except $M_{jk}=1$. $A^TMB$ is a matricial expression for your $(A^TB)_{jk}$. If $N$ is the same kind of matrix as $M$ but for indices $l$ and $m$, we could consider $(A^TMB)^TNC$...
    $endgroup$
    – Jean Marie
    Dec 12 '18 at 8:27










  • $begingroup$
    If I understand correctly your input are three matrices, but your output is a three-dimensional cube of numbers, where the number in position (j, k, l) of the cube is the outcome of the sum from your post for fixed j, k and l?
    $endgroup$
    – Vincent
    Dec 12 '18 at 12:50














3












3








3





$begingroup$


I've been wondering about this for a little while and I can't seem to come up with a definite answer. I'm leaning towards "this is not possible", but I figured I'd ask around to see if anybody else has an answer.



Problem statement



Given the expression (where $a_{ij}, b_{ij}$ and $c_{ij}$ are all real numbers)
$$sum_{i} a_{ij}b_{ik}c_{il}
$$
can this be expressed in terms of matrix/tensor multiplication? If there were only two terms, such as in



$$sum_i a_{ij} b_{ik}= (A^TB)_{jk}$$



then this would be a straightforward problem.



If there isn't a way to map this to a matrix multiplication problem, is there some other some other computationally efficient procedure for calculating such a summation with triple/quadruple terms? Or has anybody encountered some literature/terms for further research?



Literature



Equations of this nature come up all the time in the context of Corner Transfer Matrix Renormalisation Group (CTMRG). For example, equations (1) and (2) in https://arxiv.org/pdf/1107.1677.pdf










share|cite|improve this question









$endgroup$




I've been wondering about this for a little while and I can't seem to come up with a definite answer. I'm leaning towards "this is not possible", but I figured I'd ask around to see if anybody else has an answer.



Problem statement



Given the expression (where $a_{ij}, b_{ij}$ and $c_{ij}$ are all real numbers)
$$sum_{i} a_{ij}b_{ik}c_{il}
$$
can this be expressed in terms of matrix/tensor multiplication? If there were only two terms, such as in



$$sum_i a_{ij} b_{ik}= (A^TB)_{jk}$$



then this would be a straightforward problem.



If there isn't a way to map this to a matrix multiplication problem, is there some other some other computationally efficient procedure for calculating such a summation with triple/quadruple terms? Or has anybody encountered some literature/terms for further research?



Literature



Equations of this nature come up all the time in the context of Corner Transfer Matrix Renormalisation Group (CTMRG). For example, equations (1) and (2) in https://arxiv.org/pdf/1107.1677.pdf







linear-algebra matrices






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 5 '18 at 5:10









ZxvZxv

265




265








  • 1




    $begingroup$
    I think a solution, if there exist one, is by using Kronecker product operations.
    $endgroup$
    – Jean Marie
    Dec 5 '18 at 7:50






  • 2




    $begingroup$
    Interesting. I can form a matrix $Aotimes B$ using the Kronecker product. A subset of this matrix will be elements of the form $a_{ij}b_{ik}$. If I pick out those elements and form a matrix $widetilde{{AB}}$ with that, the remaining product will correspond to $sum_i widetilde{AB}_{ijk}c_{il}$, which is a standard matrix product. However, forming the full Kronecker product is a bit overkill if I just need a small subset. I wonder if there's a way to setup or trim the matrices $A$ and $B$ so that the Kronecker operation only computes what I need.
    $endgroup$
    – Zxv
    Dec 12 '18 at 3:10






  • 1




    $begingroup$
    I would also suggest trying to use partial trace operator. It sounds like it could be useful here.
    $endgroup$
    – Alex Smart
    Dec 12 '18 at 7:52










  • $begingroup$
    I thought I had a solution but I have erased it. A remark : let $M$ having all its entries $0$ except $M_{jk}=1$. $A^TMB$ is a matricial expression for your $(A^TB)_{jk}$. If $N$ is the same kind of matrix as $M$ but for indices $l$ and $m$, we could consider $(A^TMB)^TNC$...
    $endgroup$
    – Jean Marie
    Dec 12 '18 at 8:27










  • $begingroup$
    If I understand correctly your input are three matrices, but your output is a three-dimensional cube of numbers, where the number in position (j, k, l) of the cube is the outcome of the sum from your post for fixed j, k and l?
    $endgroup$
    – Vincent
    Dec 12 '18 at 12:50














  • 1




    $begingroup$
    I think a solution, if there exist one, is by using Kronecker product operations.
    $endgroup$
    – Jean Marie
    Dec 5 '18 at 7:50






  • 2




    $begingroup$
    Interesting. I can form a matrix $Aotimes B$ using the Kronecker product. A subset of this matrix will be elements of the form $a_{ij}b_{ik}$. If I pick out those elements and form a matrix $widetilde{{AB}}$ with that, the remaining product will correspond to $sum_i widetilde{AB}_{ijk}c_{il}$, which is a standard matrix product. However, forming the full Kronecker product is a bit overkill if I just need a small subset. I wonder if there's a way to setup or trim the matrices $A$ and $B$ so that the Kronecker operation only computes what I need.
    $endgroup$
    – Zxv
    Dec 12 '18 at 3:10






  • 1




    $begingroup$
    I would also suggest trying to use partial trace operator. It sounds like it could be useful here.
    $endgroup$
    – Alex Smart
    Dec 12 '18 at 7:52










  • $begingroup$
    I thought I had a solution but I have erased it. A remark : let $M$ having all its entries $0$ except $M_{jk}=1$. $A^TMB$ is a matricial expression for your $(A^TB)_{jk}$. If $N$ is the same kind of matrix as $M$ but for indices $l$ and $m$, we could consider $(A^TMB)^TNC$...
    $endgroup$
    – Jean Marie
    Dec 12 '18 at 8:27










  • $begingroup$
    If I understand correctly your input are three matrices, but your output is a three-dimensional cube of numbers, where the number in position (j, k, l) of the cube is the outcome of the sum from your post for fixed j, k and l?
    $endgroup$
    – Vincent
    Dec 12 '18 at 12:50








1




1




$begingroup$
I think a solution, if there exist one, is by using Kronecker product operations.
$endgroup$
– Jean Marie
Dec 5 '18 at 7:50




$begingroup$
I think a solution, if there exist one, is by using Kronecker product operations.
$endgroup$
– Jean Marie
Dec 5 '18 at 7:50




2




2




$begingroup$
Interesting. I can form a matrix $Aotimes B$ using the Kronecker product. A subset of this matrix will be elements of the form $a_{ij}b_{ik}$. If I pick out those elements and form a matrix $widetilde{{AB}}$ with that, the remaining product will correspond to $sum_i widetilde{AB}_{ijk}c_{il}$, which is a standard matrix product. However, forming the full Kronecker product is a bit overkill if I just need a small subset. I wonder if there's a way to setup or trim the matrices $A$ and $B$ so that the Kronecker operation only computes what I need.
$endgroup$
– Zxv
Dec 12 '18 at 3:10




$begingroup$
Interesting. I can form a matrix $Aotimes B$ using the Kronecker product. A subset of this matrix will be elements of the form $a_{ij}b_{ik}$. If I pick out those elements and form a matrix $widetilde{{AB}}$ with that, the remaining product will correspond to $sum_i widetilde{AB}_{ijk}c_{il}$, which is a standard matrix product. However, forming the full Kronecker product is a bit overkill if I just need a small subset. I wonder if there's a way to setup or trim the matrices $A$ and $B$ so that the Kronecker operation only computes what I need.
$endgroup$
– Zxv
Dec 12 '18 at 3:10




1




1




$begingroup$
I would also suggest trying to use partial trace operator. It sounds like it could be useful here.
$endgroup$
– Alex Smart
Dec 12 '18 at 7:52




$begingroup$
I would also suggest trying to use partial trace operator. It sounds like it could be useful here.
$endgroup$
– Alex Smart
Dec 12 '18 at 7:52












$begingroup$
I thought I had a solution but I have erased it. A remark : let $M$ having all its entries $0$ except $M_{jk}=1$. $A^TMB$ is a matricial expression for your $(A^TB)_{jk}$. If $N$ is the same kind of matrix as $M$ but for indices $l$ and $m$, we could consider $(A^TMB)^TNC$...
$endgroup$
– Jean Marie
Dec 12 '18 at 8:27




$begingroup$
I thought I had a solution but I have erased it. A remark : let $M$ having all its entries $0$ except $M_{jk}=1$. $A^TMB$ is a matricial expression for your $(A^TB)_{jk}$. If $N$ is the same kind of matrix as $M$ but for indices $l$ and $m$, we could consider $(A^TMB)^TNC$...
$endgroup$
– Jean Marie
Dec 12 '18 at 8:27












$begingroup$
If I understand correctly your input are three matrices, but your output is a three-dimensional cube of numbers, where the number in position (j, k, l) of the cube is the outcome of the sum from your post for fixed j, k and l?
$endgroup$
– Vincent
Dec 12 '18 at 12:50




$begingroup$
If I understand correctly your input are three matrices, but your output is a three-dimensional cube of numbers, where the number in position (j, k, l) of the cube is the outcome of the sum from your post for fixed j, k and l?
$endgroup$
– Vincent
Dec 12 '18 at 12:50










0






active

oldest

votes











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3026659%2finterpreting-triple-product-summation-as-matrix-multiplication%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3026659%2finterpreting-triple-product-summation-as-matrix-multiplication%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents