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;
$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
$$
matrix performance-tuning
$endgroup$
add a comment |
$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
$$
matrix performance-tuning
$endgroup$
$begingroup$
Check outKroneckerProduct
$endgroup$
– chuy
Jun 25 at 14:41
add a comment |
$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
$$
matrix performance-tuning
$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
matrix performance-tuning
asked Jun 25 at 14:33
Alexander NikolaenkoAlexander Nikolaenko
283 bronze badges
283 bronze badges
$begingroup$
Check outKroneckerProduct
$endgroup$
– chuy
Jun 25 at 14:41
add a comment |
$begingroup$
Check outKroneckerProduct
$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
add a comment |
1 Answer
1
active
oldest
votes
$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)$
$endgroup$
$begingroup$
thank you,it is exactly what i wanted!
$endgroup$
– Alexander Nikolaenko
Jun 25 at 14:53
add a comment |
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
);
);
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%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
$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)$
$endgroup$
$begingroup$
thank you,it is exactly what i wanted!
$endgroup$
– Alexander Nikolaenko
Jun 25 at 14:53
add a comment |
$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)$
$endgroup$
$begingroup$
thank you,it is exactly what i wanted!
$endgroup$
– Alexander Nikolaenko
Jun 25 at 14:53
add a comment |
$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)$
$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)$
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
add a comment |
$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
add a comment |
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.
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%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
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
$begingroup$
Check out
KroneckerProduct
$endgroup$
– chuy
Jun 25 at 14:41