At the end of a huge calculation, I am expecting a 2x2 matrix, but instead I get something like this `X = {{{{x11}}, {{x12}}}, {{{x21}}, {{x22}}}}; When I check its dimension, Mathematica says [2,2,1,1].
My question: How can I convert X
into a 2x2 matrix with correct dimensions?
{{a, b}}
for a row vector instead of just using{a, b}
? $\endgroup$