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

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form