Is there a name for this matrix operation?












2












$begingroup$


Transforming a matrix by copying each element up to a certain given length ($k$) and then starting on the next row with the second element, and row after that with the third, etc. So each row is shifted by one more. For example:



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3\2 & 3 & 4\3 & 4 & 5end{bmatrix}
$$



With a parameter $k=3$ or



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3 & 4\2 & 3 & 4 & 5end{bmatrix}
$$



With a parameter $k=4$.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    If such operation is useful, it certainly has a name. And conversely.
    $endgroup$
    – Yves Daoust
    Dec 1 '18 at 21:05








  • 1




    $begingroup$
    Thinking to a fixed length window (length = 3 or 2 in your example) : you are sliding this window on the message "1 2 3 4 5" and you gather the results in a new matrix : thus it has something common with discrete convolution but I don't see any "closed form" matrix expression that can render this operation...
    $endgroup$
    – Jean Marie
    Dec 1 '18 at 22:15








  • 1




    $begingroup$
    I would call the 1st operation Hankelization.
    $endgroup$
    – Rodrigo de Azevedo
    Dec 2 '18 at 8:01
















2












$begingroup$


Transforming a matrix by copying each element up to a certain given length ($k$) and then starting on the next row with the second element, and row after that with the third, etc. So each row is shifted by one more. For example:



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3\2 & 3 & 4\3 & 4 & 5end{bmatrix}
$$



With a parameter $k=3$ or



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3 & 4\2 & 3 & 4 & 5end{bmatrix}
$$



With a parameter $k=4$.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    If such operation is useful, it certainly has a name. And conversely.
    $endgroup$
    – Yves Daoust
    Dec 1 '18 at 21:05








  • 1




    $begingroup$
    Thinking to a fixed length window (length = 3 or 2 in your example) : you are sliding this window on the message "1 2 3 4 5" and you gather the results in a new matrix : thus it has something common with discrete convolution but I don't see any "closed form" matrix expression that can render this operation...
    $endgroup$
    – Jean Marie
    Dec 1 '18 at 22:15








  • 1




    $begingroup$
    I would call the 1st operation Hankelization.
    $endgroup$
    – Rodrigo de Azevedo
    Dec 2 '18 at 8:01














2












2








2





$begingroup$


Transforming a matrix by copying each element up to a certain given length ($k$) and then starting on the next row with the second element, and row after that with the third, etc. So each row is shifted by one more. For example:



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3\2 & 3 & 4\3 & 4 & 5end{bmatrix}
$$



With a parameter $k=3$ or



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3 & 4\2 & 3 & 4 & 5end{bmatrix}
$$



With a parameter $k=4$.










share|cite|improve this question











$endgroup$




Transforming a matrix by copying each element up to a certain given length ($k$) and then starting on the next row with the second element, and row after that with the third, etc. So each row is shifted by one more. For example:



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3\2 & 3 & 4\3 & 4 & 5end{bmatrix}
$$



With a parameter $k=3$ or



$$begin{bmatrix}1\2\3\4\5end{bmatrix}
rightarrow
begin{bmatrix}1 & 2 & 3 & 4\2 & 3 & 4 & 5end{bmatrix}
$$



With a parameter $k=4$.







linear-algebra






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 2 '18 at 7:38









Tianlalu

3,08121038




3,08121038










asked Dec 1 '18 at 20:49









Ken FehlingKen Fehling

1135




1135








  • 1




    $begingroup$
    If such operation is useful, it certainly has a name. And conversely.
    $endgroup$
    – Yves Daoust
    Dec 1 '18 at 21:05








  • 1




    $begingroup$
    Thinking to a fixed length window (length = 3 or 2 in your example) : you are sliding this window on the message "1 2 3 4 5" and you gather the results in a new matrix : thus it has something common with discrete convolution but I don't see any "closed form" matrix expression that can render this operation...
    $endgroup$
    – Jean Marie
    Dec 1 '18 at 22:15








  • 1




    $begingroup$
    I would call the 1st operation Hankelization.
    $endgroup$
    – Rodrigo de Azevedo
    Dec 2 '18 at 8:01














  • 1




    $begingroup$
    If such operation is useful, it certainly has a name. And conversely.
    $endgroup$
    – Yves Daoust
    Dec 1 '18 at 21:05








  • 1




    $begingroup$
    Thinking to a fixed length window (length = 3 or 2 in your example) : you are sliding this window on the message "1 2 3 4 5" and you gather the results in a new matrix : thus it has something common with discrete convolution but I don't see any "closed form" matrix expression that can render this operation...
    $endgroup$
    – Jean Marie
    Dec 1 '18 at 22:15








  • 1




    $begingroup$
    I would call the 1st operation Hankelization.
    $endgroup$
    – Rodrigo de Azevedo
    Dec 2 '18 at 8:01








1




1




$begingroup$
If such operation is useful, it certainly has a name. And conversely.
$endgroup$
– Yves Daoust
Dec 1 '18 at 21:05






$begingroup$
If such operation is useful, it certainly has a name. And conversely.
$endgroup$
– Yves Daoust
Dec 1 '18 at 21:05






1




1




$begingroup$
Thinking to a fixed length window (length = 3 or 2 in your example) : you are sliding this window on the message "1 2 3 4 5" and you gather the results in a new matrix : thus it has something common with discrete convolution but I don't see any "closed form" matrix expression that can render this operation...
$endgroup$
– Jean Marie
Dec 1 '18 at 22:15






$begingroup$
Thinking to a fixed length window (length = 3 or 2 in your example) : you are sliding this window on the message "1 2 3 4 5" and you gather the results in a new matrix : thus it has something common with discrete convolution but I don't see any "closed form" matrix expression that can render this operation...
$endgroup$
– Jean Marie
Dec 1 '18 at 22:15






1




1




$begingroup$
I would call the 1st operation Hankelization.
$endgroup$
– Rodrigo de Azevedo
Dec 2 '18 at 8:01




$begingroup$
I would call the 1st operation Hankelization.
$endgroup$
– Rodrigo de Azevedo
Dec 2 '18 at 8:01










1 Answer
1






active

oldest

votes


















1












$begingroup$

The operation looks a little too particular to me to have a (well known) name.



The resulting matrix is like a Toeplitz matrix (except that it's constant along the anti-diagonals), could be regarded as some sort of "toeplitzation" (ugh)...



For example, the second example in Matlab/Octave:



>> fliplr(toeplitz([4,5],[4,3,2,1]))
ans =

1 2 3 4
2 3 4 5





share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    Thanks! This opened up some good things for me to look into. From Toeplitz I found Hankel which seems like I can use to do at least something close to what I need.
    $endgroup$
    – Ken Fehling
    Dec 1 '18 at 21:43






  • 1




    $begingroup$
    If you are looking for ways to do this in Python, you may also be interested in vstack.
    $endgroup$
    – Erik André
    Dec 2 '18 at 7:56













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%2f3021815%2fis-there-a-name-for-this-matrix-operation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

The operation looks a little too particular to me to have a (well known) name.



The resulting matrix is like a Toeplitz matrix (except that it's constant along the anti-diagonals), could be regarded as some sort of "toeplitzation" (ugh)...



For example, the second example in Matlab/Octave:



>> fliplr(toeplitz([4,5],[4,3,2,1]))
ans =

1 2 3 4
2 3 4 5





share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    Thanks! This opened up some good things for me to look into. From Toeplitz I found Hankel which seems like I can use to do at least something close to what I need.
    $endgroup$
    – Ken Fehling
    Dec 1 '18 at 21:43






  • 1




    $begingroup$
    If you are looking for ways to do this in Python, you may also be interested in vstack.
    $endgroup$
    – Erik André
    Dec 2 '18 at 7:56


















1












$begingroup$

The operation looks a little too particular to me to have a (well known) name.



The resulting matrix is like a Toeplitz matrix (except that it's constant along the anti-diagonals), could be regarded as some sort of "toeplitzation" (ugh)...



For example, the second example in Matlab/Octave:



>> fliplr(toeplitz([4,5],[4,3,2,1]))
ans =

1 2 3 4
2 3 4 5





share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    Thanks! This opened up some good things for me to look into. From Toeplitz I found Hankel which seems like I can use to do at least something close to what I need.
    $endgroup$
    – Ken Fehling
    Dec 1 '18 at 21:43






  • 1




    $begingroup$
    If you are looking for ways to do this in Python, you may also be interested in vstack.
    $endgroup$
    – Erik André
    Dec 2 '18 at 7:56
















1












1








1





$begingroup$

The operation looks a little too particular to me to have a (well known) name.



The resulting matrix is like a Toeplitz matrix (except that it's constant along the anti-diagonals), could be regarded as some sort of "toeplitzation" (ugh)...



For example, the second example in Matlab/Octave:



>> fliplr(toeplitz([4,5],[4,3,2,1]))
ans =

1 2 3 4
2 3 4 5





share|cite|improve this answer









$endgroup$



The operation looks a little too particular to me to have a (well known) name.



The resulting matrix is like a Toeplitz matrix (except that it's constant along the anti-diagonals), could be regarded as some sort of "toeplitzation" (ugh)...



For example, the second example in Matlab/Octave:



>> fliplr(toeplitz([4,5],[4,3,2,1]))
ans =

1 2 3 4
2 3 4 5






share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 1 '18 at 21:25









leonbloyleonbloy

40.5k645107




40.5k645107








  • 1




    $begingroup$
    Thanks! This opened up some good things for me to look into. From Toeplitz I found Hankel which seems like I can use to do at least something close to what I need.
    $endgroup$
    – Ken Fehling
    Dec 1 '18 at 21:43






  • 1




    $begingroup$
    If you are looking for ways to do this in Python, you may also be interested in vstack.
    $endgroup$
    – Erik André
    Dec 2 '18 at 7:56
















  • 1




    $begingroup$
    Thanks! This opened up some good things for me to look into. From Toeplitz I found Hankel which seems like I can use to do at least something close to what I need.
    $endgroup$
    – Ken Fehling
    Dec 1 '18 at 21:43






  • 1




    $begingroup$
    If you are looking for ways to do this in Python, you may also be interested in vstack.
    $endgroup$
    – Erik André
    Dec 2 '18 at 7:56










1




1




$begingroup$
Thanks! This opened up some good things for me to look into. From Toeplitz I found Hankel which seems like I can use to do at least something close to what I need.
$endgroup$
– Ken Fehling
Dec 1 '18 at 21:43




$begingroup$
Thanks! This opened up some good things for me to look into. From Toeplitz I found Hankel which seems like I can use to do at least something close to what I need.
$endgroup$
– Ken Fehling
Dec 1 '18 at 21:43




1




1




$begingroup$
If you are looking for ways to do this in Python, you may also be interested in vstack.
$endgroup$
– Erik André
Dec 2 '18 at 7:56






$begingroup$
If you are looking for ways to do this in Python, you may also be interested in vstack.
$endgroup$
– Erik André
Dec 2 '18 at 7:56




















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%2f3021815%2fis-there-a-name-for-this-matrix-operation%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

Le Mesnil-Réaume

Ida-Boy-Ed-Garten

web3.py web3.isConnected() returns false always