Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.7K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

I don't understand the ArrayFlatten function.

Posted 9 years ago

I don't understand the ArrayFlatten function. I didn't understand the definition in the documentation, and I didn't understand the examples there and in Stephen Wolfram book An Elementary Introduction to the Wolfram Language, chapter 30. Can anybody be more precise without being too verbose?

POSTED BY: alexander weiss
4 Replies

I think Murray's example illustrates the purpose of ArrayFlatten very well, but maybe your confusion starts much earlier. Does the rest of chapter 30 make sense to you? Do you understand functions like Flatten and Partition?

POSTED BY: Bianca Eifert

What, exactly, don't you understand about that example?

Did you actually apply MatrixForm to the results? I thought doing that makes evident what ArrayFlatten is doing here.

To spell things out for this example, which starts with what you may think of as a 2-by-3 matrix each of whose entries is a 2-by-2 matrix: The result of evaluating ArrayFlatten upon it produces what you may think of as a new matrix each of whose entries is a single number rather than a matrix; in the original "matrix" there was a total of 4 rows in the matrix elements, 2 rows from the 1st row of the big matrix, and 2 more rows from the 2nd row of the big matrix; the entries of the 1st row of the result are the successive entries from the first rows of the first row of matrices of the big matrix, etc.

POSTED BY: Murray Eisenberg

As I mentioned in my post, I didn't understand the example in the documentation, which is the example in the reply.

POSTED BY: alexander weiss

Does it help you if you look at the first Basic Example in the documentation as follows?

 m = {{1, 2}, {3, 4}};

 multi = {{m, m, m}, {m, m, m}}
 multi // MatrixForm

 ArrayFlatten[multi]
 ArrayFlatten[multi] // MatrixForm
POSTED BY: Murray Eisenberg
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard