Buliding a larger matrix from a smaller oneHow to transform this matrix & swap its columns in a simple way?Add a sub-matrix of zeros in big matrixInsert all elements from one matrix into anotherMatrix form of complex numbersExpress block matrix in terms of matrix basisOperatorial matrixPartitioned matrix operationsBuilding a matrix in block matrix formatFactor multiplied matrix with vectorMatrix Decomposition and Collect

Could you sell yourself into slavery in the USA?

Why did C++11 make std::string::data() add a null terminating character?

What does it mean for a bass player to play "on the one"?

How to deal with administrative duties killing the research spirit?

Do I need to be legally qualified to install a Hive smart thermostat?

how can i make this execution plan more efficient?

Does a multiclassed wizard start with a spellbook?

Minimizing medical costs with HSA

Why did moving the mouse cursor cause Windows 95 to run more quickly?

What is the addition in the re-released version of Avengers: Endgame?

Should I increase my 401(k) contributions, or increase my mortgage payments

How did Einstein know the speed of light was constant?

What happens if the limit of 4 billion files was exceeded in an ext4 partition?

Advice for making/keeping shredded chicken moist?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?

Park the computer

Did Stalin kill all Soviet officers involved in the Winter War?

How to deal with a Murder Hobo Paladin?

What does the ash content of broken wheat really mean?

Taking advantage when the HR forgets to communicate the rules

Data normalization before or after train-test split?

How to improve the size of cells in this table?

What units are kpts?

What is the fundamental difference between catching whales and hunting other animals?



Buliding a larger matrix from a smaller one


How to transform this matrix & swap its columns in a simple way?Add a sub-matrix of zeros in big matrixInsert all elements from one matrix into anotherMatrix form of complex numbersExpress block matrix in terms of matrix basisOperatorial matrixPartitioned matrix operationsBuilding a matrix in block matrix formatFactor multiplied matrix with vectorMatrix Decomposition and Collect






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








5












$begingroup$


I have my matrix $h$ of size $2Ntimes 2N$ in this form



$$h=beginpmatrix
a & b \
c & d
endpmatrix
$$

where $a,b,c,d$ are smaller matrices which i don't know.
Is there any simple way to get this matrix?
$$beginpmatrix
a &0& b&0 \
0 &a& 0&b\
c &0& d&0 \
0 &c& 0&d\
endpmatrix
$$










share|improve this question









$endgroup$











  • $begingroup$
    Check out KroneckerProduct
    $endgroup$
    – chuy
    Jun 25 at 14:41

















5












$begingroup$


I have my matrix $h$ of size $2Ntimes 2N$ in this form



$$h=beginpmatrix
a & b \
c & d
endpmatrix
$$

where $a,b,c,d$ are smaller matrices which i don't know.
Is there any simple way to get this matrix?
$$beginpmatrix
a &0& b&0 \
0 &a& 0&b\
c &0& d&0 \
0 &c& 0&d\
endpmatrix
$$










share|improve this question









$endgroup$











  • $begingroup$
    Check out KroneckerProduct
    $endgroup$
    – chuy
    Jun 25 at 14:41













5












5








5


1



$begingroup$


I have my matrix $h$ of size $2Ntimes 2N$ in this form



$$h=beginpmatrix
a & b \
c & d
endpmatrix
$$

where $a,b,c,d$ are smaller matrices which i don't know.
Is there any simple way to get this matrix?
$$beginpmatrix
a &0& b&0 \
0 &a& 0&b\
c &0& d&0 \
0 &c& 0&d\
endpmatrix
$$










share|improve this question









$endgroup$




I have my matrix $h$ of size $2Ntimes 2N$ in this form



$$h=beginpmatrix
a & b \
c & d
endpmatrix
$$

where $a,b,c,d$ are smaller matrices which i don't know.
Is there any simple way to get this matrix?
$$beginpmatrix
a &0& b&0 \
0 &a& 0&b\
c &0& d&0 \
0 &c& 0&d\
endpmatrix
$$







matrix performance-tuning






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 25 at 14:33









Alexander NikolaenkoAlexander Nikolaenko

283 bronze badges




283 bronze badges











  • $begingroup$
    Check out KroneckerProduct
    $endgroup$
    – chuy
    Jun 25 at 14:41
















  • $begingroup$
    Check out KroneckerProduct
    $endgroup$
    – chuy
    Jun 25 at 14:41















$begingroup$
Check out KroneckerProduct
$endgroup$
– chuy
Jun 25 at 14:41




$begingroup$
Check out KroneckerProduct
$endgroup$
– chuy
Jun 25 at 14:41










1 Answer
1






active

oldest

votes


















10












$begingroup$

MatrixForm[h = a, b, c, d]



$ h=left(
beginarraycc
a & b \
c & d \
endarray
right)$




KroneckerProduct[h, IdentityMatrix@2] // MatrixForm



$ left(
beginarraycccc
a & 0 & b & 0 \
0 & a & 0 & b \
c & 0 & d & 0 \
0 & c & 0 & d \
endarray
right)$







share|improve this answer









$endgroup$












  • $begingroup$
    thank you,it is exactly what i wanted!
    $endgroup$
    – Alexander Nikolaenko
    Jun 25 at 14:53













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f200978%2fbuliding-a-larger-matrix-from-a-smaller-one%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









10












$begingroup$

MatrixForm[h = a, b, c, d]



$ h=left(
beginarraycc
a & b \
c & d \
endarray
right)$




KroneckerProduct[h, IdentityMatrix@2] // MatrixForm



$ left(
beginarraycccc
a & 0 & b & 0 \
0 & a & 0 & b \
c & 0 & d & 0 \
0 & c & 0 & d \
endarray
right)$







share|improve this answer









$endgroup$












  • $begingroup$
    thank you,it is exactly what i wanted!
    $endgroup$
    – Alexander Nikolaenko
    Jun 25 at 14:53















10












$begingroup$

MatrixForm[h = a, b, c, d]



$ h=left(
beginarraycc
a & b \
c & d \
endarray
right)$




KroneckerProduct[h, IdentityMatrix@2] // MatrixForm



$ left(
beginarraycccc
a & 0 & b & 0 \
0 & a & 0 & b \
c & 0 & d & 0 \
0 & c & 0 & d \
endarray
right)$







share|improve this answer









$endgroup$












  • $begingroup$
    thank you,it is exactly what i wanted!
    $endgroup$
    – Alexander Nikolaenko
    Jun 25 at 14:53













10












10








10





$begingroup$

MatrixForm[h = a, b, c, d]



$ h=left(
beginarraycc
a & b \
c & d \
endarray
right)$




KroneckerProduct[h, IdentityMatrix@2] // MatrixForm



$ left(
beginarraycccc
a & 0 & b & 0 \
0 & a & 0 & b \
c & 0 & d & 0 \
0 & c & 0 & d \
endarray
right)$







share|improve this answer









$endgroup$



MatrixForm[h = a, b, c, d]



$ h=left(
beginarraycc
a & b \
c & d \
endarray
right)$




KroneckerProduct[h, IdentityMatrix@2] // MatrixForm



$ left(
beginarraycccc
a & 0 & b & 0 \
0 & a & 0 & b \
c & 0 & d & 0 \
0 & c & 0 & d \
endarray
right)$








share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 25 at 14:45









Okkes DulgerciOkkes Dulgerci

5,9231 gold badge11 silver badges21 bronze badges




5,9231 gold badge11 silver badges21 bronze badges











  • $begingroup$
    thank you,it is exactly what i wanted!
    $endgroup$
    – Alexander Nikolaenko
    Jun 25 at 14:53
















  • $begingroup$
    thank you,it is exactly what i wanted!
    $endgroup$
    – Alexander Nikolaenko
    Jun 25 at 14:53















$begingroup$
thank you,it is exactly what i wanted!
$endgroup$
– Alexander Nikolaenko
Jun 25 at 14:53




$begingroup$
thank you,it is exactly what i wanted!
$endgroup$
– Alexander Nikolaenko
Jun 25 at 14:53

















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematica 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%2fmathematica.stackexchange.com%2fquestions%2f200978%2fbuliding-a-larger-matrix-from-a-smaller-one%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

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?