Using good method to produce a regular matrix The 2019 Stack Overflow Developer Survey Results Are InHow can I fit a matrix function with multiple variables to given eigenvalues?What is the best way to produce a symmetric semi-definite matrix using as few variables as possible?Produce a 1-dimensional list of all unique matrix elementsEfficient method for Inserting arrays into arraysCreate a matrix of matrices using Band and ArrayFlatten'MatrixForm' problemElegant method of generating this matrix?A problem about matrix/vector extension via $tt ArrayPad$replacement in a nested matrixBuild matrix from smaller matrices or rearange list of lists

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Statement true because not provable

What does ひと匙 mean in this manga and has it been used colloquially?

Did 3000BC Egyptians use meteoric iron weapons?

Why was M87 targetted for the Event Horizon Telescope instead of Sagittarius A*?

One word riddle: Vowel in the middle

Do these rules for Critical Successes and Critical Failures seem Fair?

How technical should a Scrum Master be to effectively remove impediments?

Can you compress metal and what would be the consequences?

Origin of "cooter" meaning "vagina"

What is the meaning of the verb "bear" in this context?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Why isn't the circumferential light around the M87 black hole's event horizon symmetric?

Does a dangling wire really electrocute me if I'm standing in water?

Is it possible to force a package to be called last in the entirety of the LaTeX, when called in the class file?

Are there incongruent pythagorean triangles with the same perimeter and same area?

"as much details as you can remember"

Why is my custom API endpoint not working?

Deal with toxic manager when you can't quit

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Why did Acorn's A3000 have red function keys?

FPGA - DIY Programming

How to notate time signature switching consistently every measure



Using good method to produce a regular matrix



The 2019 Stack Overflow Developer Survey Results Are InHow can I fit a matrix function with multiple variables to given eigenvalues?What is the best way to produce a symmetric semi-definite matrix using as few variables as possible?Produce a 1-dimensional list of all unique matrix elementsEfficient method for Inserting arrays into arraysCreate a matrix of matrices using Band and ArrayFlatten'MatrixForm' problemElegant method of generating this matrix?A problem about matrix/vector extension via $tt ArrayPad$replacement in a nested matrixBuild matrix from smaller matrices or rearange list of lists










2












$begingroup$


The matrixform is as follow, and how can I use good method to produce it?enter image description here



H = 1, 1, 0, 2, 2, 0, 0, 1, 1,
0, 2, 2, 1, 0, 1, 2, 0, 2









share|improve this question









New contributor




KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$











  • $begingroup$
    If the picture can't show,then here is the matrixform:H=1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2
    $endgroup$
    – KarryMa
    Apr 6 at 9:22











  • $begingroup$
    KroneckerProduct[ MapThread[ ReplacePart[#1, #2 -> 0] &, ConstantArray[1, 3, 3], RotateRight[Range[3]]], 1, 2 ]
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:25











  • $begingroup$
    Great,thank you very much!
    $endgroup$
    – KarryMa
    Apr 6 at 9:26










  • $begingroup$
    Or Normal@KroneckerProduct[ SparseArray[Band[1, 1] -> 1, Band[1, 2] -> 1, Band[3, 1] -> 1, 3, 3], 1, 2 ].
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:27






  • 3




    $begingroup$
    Transpose@KroneckerProduct[Permutations[1, 0, 1], 1, 2]
    $endgroup$
    – LouisB
    Apr 6 at 9:45















2












$begingroup$


The matrixform is as follow, and how can I use good method to produce it?enter image description here



H = 1, 1, 0, 2, 2, 0, 0, 1, 1,
0, 2, 2, 1, 0, 1, 2, 0, 2









share|improve this question









New contributor




KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$











  • $begingroup$
    If the picture can't show,then here is the matrixform:H=1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2
    $endgroup$
    – KarryMa
    Apr 6 at 9:22











  • $begingroup$
    KroneckerProduct[ MapThread[ ReplacePart[#1, #2 -> 0] &, ConstantArray[1, 3, 3], RotateRight[Range[3]]], 1, 2 ]
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:25











  • $begingroup$
    Great,thank you very much!
    $endgroup$
    – KarryMa
    Apr 6 at 9:26










  • $begingroup$
    Or Normal@KroneckerProduct[ SparseArray[Band[1, 1] -> 1, Band[1, 2] -> 1, Band[3, 1] -> 1, 3, 3], 1, 2 ].
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:27






  • 3




    $begingroup$
    Transpose@KroneckerProduct[Permutations[1, 0, 1], 1, 2]
    $endgroup$
    – LouisB
    Apr 6 at 9:45













2












2








2


0



$begingroup$


The matrixform is as follow, and how can I use good method to produce it?enter image description here



H = 1, 1, 0, 2, 2, 0, 0, 1, 1,
0, 2, 2, 1, 0, 1, 2, 0, 2









share|improve this question









New contributor




KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




The matrixform is as follow, and how can I use good method to produce it?enter image description here



H = 1, 1, 0, 2, 2, 0, 0, 1, 1,
0, 2, 2, 1, 0, 1, 2, 0, 2






list-manipulation matrix array






share|improve this question









New contributor




KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Apr 7 at 13:06









MarcoB

38.6k557115




38.6k557115






New contributor




KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 6 at 9:18









KarryMaKarryMa

163




163




New contributor




KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






KarryMa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • $begingroup$
    If the picture can't show,then here is the matrixform:H=1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2
    $endgroup$
    – KarryMa
    Apr 6 at 9:22











  • $begingroup$
    KroneckerProduct[ MapThread[ ReplacePart[#1, #2 -> 0] &, ConstantArray[1, 3, 3], RotateRight[Range[3]]], 1, 2 ]
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:25











  • $begingroup$
    Great,thank you very much!
    $endgroup$
    – KarryMa
    Apr 6 at 9:26










  • $begingroup$
    Or Normal@KroneckerProduct[ SparseArray[Band[1, 1] -> 1, Band[1, 2] -> 1, Band[3, 1] -> 1, 3, 3], 1, 2 ].
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:27






  • 3




    $begingroup$
    Transpose@KroneckerProduct[Permutations[1, 0, 1], 1, 2]
    $endgroup$
    – LouisB
    Apr 6 at 9:45
















  • $begingroup$
    If the picture can't show,then here is the matrixform:H=1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2
    $endgroup$
    – KarryMa
    Apr 6 at 9:22











  • $begingroup$
    KroneckerProduct[ MapThread[ ReplacePart[#1, #2 -> 0] &, ConstantArray[1, 3, 3], RotateRight[Range[3]]], 1, 2 ]
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:25











  • $begingroup$
    Great,thank you very much!
    $endgroup$
    – KarryMa
    Apr 6 at 9:26










  • $begingroup$
    Or Normal@KroneckerProduct[ SparseArray[Band[1, 1] -> 1, Band[1, 2] -> 1, Band[3, 1] -> 1, 3, 3], 1, 2 ].
    $endgroup$
    – Henrik Schumacher
    Apr 6 at 9:27






  • 3




    $begingroup$
    Transpose@KroneckerProduct[Permutations[1, 0, 1], 1, 2]
    $endgroup$
    – LouisB
    Apr 6 at 9:45















$begingroup$
If the picture can't show,then here is the matrixform:H=1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2
$endgroup$
– KarryMa
Apr 6 at 9:22





$begingroup$
If the picture can't show,then here is the matrixform:H=1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2
$endgroup$
– KarryMa
Apr 6 at 9:22













$begingroup$
KroneckerProduct[ MapThread[ ReplacePart[#1, #2 -> 0] &, ConstantArray[1, 3, 3], RotateRight[Range[3]]], 1, 2 ]
$endgroup$
– Henrik Schumacher
Apr 6 at 9:25





$begingroup$
KroneckerProduct[ MapThread[ ReplacePart[#1, #2 -> 0] &, ConstantArray[1, 3, 3], RotateRight[Range[3]]], 1, 2 ]
$endgroup$
– Henrik Schumacher
Apr 6 at 9:25













$begingroup$
Great,thank you very much!
$endgroup$
– KarryMa
Apr 6 at 9:26




$begingroup$
Great,thank you very much!
$endgroup$
– KarryMa
Apr 6 at 9:26












$begingroup$
Or Normal@KroneckerProduct[ SparseArray[Band[1, 1] -> 1, Band[1, 2] -> 1, Band[3, 1] -> 1, 3, 3], 1, 2 ].
$endgroup$
– Henrik Schumacher
Apr 6 at 9:27




$begingroup$
Or Normal@KroneckerProduct[ SparseArray[Band[1, 1] -> 1, Band[1, 2] -> 1, Band[3, 1] -> 1, 3, 3], 1, 2 ].
$endgroup$
– Henrik Schumacher
Apr 6 at 9:27




3




3




$begingroup$
Transpose@KroneckerProduct[Permutations[1, 0, 1], 1, 2]
$endgroup$
– LouisB
Apr 6 at 9:45




$begingroup$
Transpose@KroneckerProduct[Permutations[1, 0, 1], 1, 2]
$endgroup$
– LouisB
Apr 6 at 9:45










2 Answers
2






active

oldest

votes


















2












$begingroup$

IntegerDigits[12,24,4,8,10,20,3,3] 



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2




also..



s = Transpose[Permutations /@ 1, 1, 0, 2, 2, 0];
Flatten[s[[1]],Reverse@Rest@s,2]



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2







share|improve this answer











$endgroup$








  • 2




    $begingroup$
    I like the answer,thanks!
    $endgroup$
    – KarryMa
    Apr 6 at 9:55










  • $begingroup$
    @KarryMa Alternatively to PadLeft you can add 3 as 3rd argument IntegerDigits[12, 24, 4, 8, 10, 20, 3, 3].
    $endgroup$
    – Coolwater
    Apr 6 at 14:49










  • $begingroup$
    yes, you are so right!
    $endgroup$
    – J42161217
    Apr 6 at 14:51


















1












$begingroup$

A nice tool for this job is ArrayFlatten[ ]



a = 1, 2


$left(
beginarrayc
1 \
2 \
endarray
right)$



Not sure why your rows are ordered the way they are. Are you trying to have a non-zero diagonal?



a,a,0,0,a,a,a,0,a// ArrayFlatten


$left(
beginarrayccc
1 & 1 & 0 \
2 & 2 & 0 \
0 & 1 & 1 \
0 & 2 & 2 \
1 & 0 & 1 \
2 & 0 & 2 \
endarray
right)$






share|improve this answer











$endgroup$












  • $begingroup$
    This is not the exact result the OP is asking. The order of the elements is different. Also the "permutation" solution is already posted in my answer
    $endgroup$
    – J42161217
    Apr 6 at 14:58










  • $begingroup$
    My purpose was to introduce ArrayFlatten. Not enough info to algorithmically determine the order of perms.
    $endgroup$
    – MikeY
    Apr 6 at 15:27










  • $begingroup$
    Actually,this is the answer I originally wanted,then I will use ''PauliMatrix'' and ''Map'' to get what I want.Thank you for your help!
    $endgroup$
    – KarryMa
    Apr 7 at 2:35











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: "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
);



);






KarryMa is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f194717%2fusing-good-method-to-produce-a-regular-matrix%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

IntegerDigits[12,24,4,8,10,20,3,3] 



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2




also..



s = Transpose[Permutations /@ 1, 1, 0, 2, 2, 0];
Flatten[s[[1]],Reverse@Rest@s,2]



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2







share|improve this answer











$endgroup$








  • 2




    $begingroup$
    I like the answer,thanks!
    $endgroup$
    – KarryMa
    Apr 6 at 9:55










  • $begingroup$
    @KarryMa Alternatively to PadLeft you can add 3 as 3rd argument IntegerDigits[12, 24, 4, 8, 10, 20, 3, 3].
    $endgroup$
    – Coolwater
    Apr 6 at 14:49










  • $begingroup$
    yes, you are so right!
    $endgroup$
    – J42161217
    Apr 6 at 14:51















2












$begingroup$

IntegerDigits[12,24,4,8,10,20,3,3] 



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2




also..



s = Transpose[Permutations /@ 1, 1, 0, 2, 2, 0];
Flatten[s[[1]],Reverse@Rest@s,2]



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2







share|improve this answer











$endgroup$








  • 2




    $begingroup$
    I like the answer,thanks!
    $endgroup$
    – KarryMa
    Apr 6 at 9:55










  • $begingroup$
    @KarryMa Alternatively to PadLeft you can add 3 as 3rd argument IntegerDigits[12, 24, 4, 8, 10, 20, 3, 3].
    $endgroup$
    – Coolwater
    Apr 6 at 14:49










  • $begingroup$
    yes, you are so right!
    $endgroup$
    – J42161217
    Apr 6 at 14:51













2












2








2





$begingroup$

IntegerDigits[12,24,4,8,10,20,3,3] 



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2




also..



s = Transpose[Permutations /@ 1, 1, 0, 2, 2, 0];
Flatten[s[[1]],Reverse@Rest@s,2]



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2







share|improve this answer











$endgroup$



IntegerDigits[12,24,4,8,10,20,3,3] 



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2




also..



s = Transpose[Permutations /@ 1, 1, 0, 2, 2, 0];
Flatten[s[[1]],Reverse@Rest@s,2]



1,1,0,2,2,0,0,1,1,0,2,2,1,0,1,2,0,2








share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 6 at 14:52

























answered Apr 6 at 9:29









J42161217J42161217

4,273324




4,273324







  • 2




    $begingroup$
    I like the answer,thanks!
    $endgroup$
    – KarryMa
    Apr 6 at 9:55










  • $begingroup$
    @KarryMa Alternatively to PadLeft you can add 3 as 3rd argument IntegerDigits[12, 24, 4, 8, 10, 20, 3, 3].
    $endgroup$
    – Coolwater
    Apr 6 at 14:49










  • $begingroup$
    yes, you are so right!
    $endgroup$
    – J42161217
    Apr 6 at 14:51












  • 2




    $begingroup$
    I like the answer,thanks!
    $endgroup$
    – KarryMa
    Apr 6 at 9:55










  • $begingroup$
    @KarryMa Alternatively to PadLeft you can add 3 as 3rd argument IntegerDigits[12, 24, 4, 8, 10, 20, 3, 3].
    $endgroup$
    – Coolwater
    Apr 6 at 14:49










  • $begingroup$
    yes, you are so right!
    $endgroup$
    – J42161217
    Apr 6 at 14:51







2




2




$begingroup$
I like the answer,thanks!
$endgroup$
– KarryMa
Apr 6 at 9:55




$begingroup$
I like the answer,thanks!
$endgroup$
– KarryMa
Apr 6 at 9:55












$begingroup$
@KarryMa Alternatively to PadLeft you can add 3 as 3rd argument IntegerDigits[12, 24, 4, 8, 10, 20, 3, 3].
$endgroup$
– Coolwater
Apr 6 at 14:49




$begingroup$
@KarryMa Alternatively to PadLeft you can add 3 as 3rd argument IntegerDigits[12, 24, 4, 8, 10, 20, 3, 3].
$endgroup$
– Coolwater
Apr 6 at 14:49












$begingroup$
yes, you are so right!
$endgroup$
– J42161217
Apr 6 at 14:51




$begingroup$
yes, you are so right!
$endgroup$
– J42161217
Apr 6 at 14:51











1












$begingroup$

A nice tool for this job is ArrayFlatten[ ]



a = 1, 2


$left(
beginarrayc
1 \
2 \
endarray
right)$



Not sure why your rows are ordered the way they are. Are you trying to have a non-zero diagonal?



a,a,0,0,a,a,a,0,a// ArrayFlatten


$left(
beginarrayccc
1 & 1 & 0 \
2 & 2 & 0 \
0 & 1 & 1 \
0 & 2 & 2 \
1 & 0 & 1 \
2 & 0 & 2 \
endarray
right)$






share|improve this answer











$endgroup$












  • $begingroup$
    This is not the exact result the OP is asking. The order of the elements is different. Also the "permutation" solution is already posted in my answer
    $endgroup$
    – J42161217
    Apr 6 at 14:58










  • $begingroup$
    My purpose was to introduce ArrayFlatten. Not enough info to algorithmically determine the order of perms.
    $endgroup$
    – MikeY
    Apr 6 at 15:27










  • $begingroup$
    Actually,this is the answer I originally wanted,then I will use ''PauliMatrix'' and ''Map'' to get what I want.Thank you for your help!
    $endgroup$
    – KarryMa
    Apr 7 at 2:35















1












$begingroup$

A nice tool for this job is ArrayFlatten[ ]



a = 1, 2


$left(
beginarrayc
1 \
2 \
endarray
right)$



Not sure why your rows are ordered the way they are. Are you trying to have a non-zero diagonal?



a,a,0,0,a,a,a,0,a// ArrayFlatten


$left(
beginarrayccc
1 & 1 & 0 \
2 & 2 & 0 \
0 & 1 & 1 \
0 & 2 & 2 \
1 & 0 & 1 \
2 & 0 & 2 \
endarray
right)$






share|improve this answer











$endgroup$












  • $begingroup$
    This is not the exact result the OP is asking. The order of the elements is different. Also the "permutation" solution is already posted in my answer
    $endgroup$
    – J42161217
    Apr 6 at 14:58










  • $begingroup$
    My purpose was to introduce ArrayFlatten. Not enough info to algorithmically determine the order of perms.
    $endgroup$
    – MikeY
    Apr 6 at 15:27










  • $begingroup$
    Actually,this is the answer I originally wanted,then I will use ''PauliMatrix'' and ''Map'' to get what I want.Thank you for your help!
    $endgroup$
    – KarryMa
    Apr 7 at 2:35













1












1








1





$begingroup$

A nice tool for this job is ArrayFlatten[ ]



a = 1, 2


$left(
beginarrayc
1 \
2 \
endarray
right)$



Not sure why your rows are ordered the way they are. Are you trying to have a non-zero diagonal?



a,a,0,0,a,a,a,0,a// ArrayFlatten


$left(
beginarrayccc
1 & 1 & 0 \
2 & 2 & 0 \
0 & 1 & 1 \
0 & 2 & 2 \
1 & 0 & 1 \
2 & 0 & 2 \
endarray
right)$






share|improve this answer











$endgroup$



A nice tool for this job is ArrayFlatten[ ]



a = 1, 2


$left(
beginarrayc
1 \
2 \
endarray
right)$



Not sure why your rows are ordered the way they are. Are you trying to have a non-zero diagonal?



a,a,0,0,a,a,a,0,a// ArrayFlatten


$left(
beginarrayccc
1 & 1 & 0 \
2 & 2 & 0 \
0 & 1 & 1 \
0 & 2 & 2 \
1 & 0 & 1 \
2 & 0 & 2 \
endarray
right)$







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 6 at 15:25

























answered Apr 6 at 13:21









MikeYMikeY

3,828916




3,828916











  • $begingroup$
    This is not the exact result the OP is asking. The order of the elements is different. Also the "permutation" solution is already posted in my answer
    $endgroup$
    – J42161217
    Apr 6 at 14:58










  • $begingroup$
    My purpose was to introduce ArrayFlatten. Not enough info to algorithmically determine the order of perms.
    $endgroup$
    – MikeY
    Apr 6 at 15:27










  • $begingroup$
    Actually,this is the answer I originally wanted,then I will use ''PauliMatrix'' and ''Map'' to get what I want.Thank you for your help!
    $endgroup$
    – KarryMa
    Apr 7 at 2:35
















  • $begingroup$
    This is not the exact result the OP is asking. The order of the elements is different. Also the "permutation" solution is already posted in my answer
    $endgroup$
    – J42161217
    Apr 6 at 14:58










  • $begingroup$
    My purpose was to introduce ArrayFlatten. Not enough info to algorithmically determine the order of perms.
    $endgroup$
    – MikeY
    Apr 6 at 15:27










  • $begingroup$
    Actually,this is the answer I originally wanted,then I will use ''PauliMatrix'' and ''Map'' to get what I want.Thank you for your help!
    $endgroup$
    – KarryMa
    Apr 7 at 2:35















$begingroup$
This is not the exact result the OP is asking. The order of the elements is different. Also the "permutation" solution is already posted in my answer
$endgroup$
– J42161217
Apr 6 at 14:58




$begingroup$
This is not the exact result the OP is asking. The order of the elements is different. Also the "permutation" solution is already posted in my answer
$endgroup$
– J42161217
Apr 6 at 14:58












$begingroup$
My purpose was to introduce ArrayFlatten. Not enough info to algorithmically determine the order of perms.
$endgroup$
– MikeY
Apr 6 at 15:27




$begingroup$
My purpose was to introduce ArrayFlatten. Not enough info to algorithmically determine the order of perms.
$endgroup$
– MikeY
Apr 6 at 15:27












$begingroup$
Actually,this is the answer I originally wanted,then I will use ''PauliMatrix'' and ''Map'' to get what I want.Thank you for your help!
$endgroup$
– KarryMa
Apr 7 at 2:35




$begingroup$
Actually,this is the answer I originally wanted,then I will use ''PauliMatrix'' and ''Map'' to get what I want.Thank you for your help!
$endgroup$
– KarryMa
Apr 7 at 2:35










KarryMa is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















KarryMa is a new contributor. Be nice, and check out our Code of Conduct.












KarryMa is a new contributor. Be nice, and check out our Code of Conduct.











KarryMa is a new contributor. Be nice, and check out our Code of Conduct.














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%2f194717%2fusing-good-method-to-produce-a-regular-matrix%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 write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos