Hi,
I am stuck on a problem that most likely has an easy solution..
I have 2 symbolic matrices:
amat = {{a11, a12}, {a21, a22}, {a31, a32}, {a41, a42}};
bmat = {{b11, b12}, {b21, b22}, {b31, b32}, {b41, b42}};
I want to end up with this output:
{a11 == b11, a12 == b12, a21 == b21, a22 == b22, a31 == b31,
a32 == b32, a41 == b41, a42 == b42}
I get this when I directly thread: Thread[amat == bmat]
{{a11, a12} == {b11, b12}, {a21, a22} == {b21, b22}, {a31,
a32} == {b31, b32}, {a41, a42} == {b41, b42}}
I can get the output I want if I flatten to lists prior to threading: Thread[amat//Flatten = bmat//Flatten] but I am hoping someone can show me a more elegant way (from the documentation it seems like Thread[amat == bmat, 2] should work but it doesn't.
Thank you for any suggestions. Rebecca