Split a Matrix into and arbitrary number of blocks

  • Context: Undergrad 
  • Thread starter Thread starter DarkFalz
  • Start date Start date
  • Tags Tags
    Blocks Matrix Split
Click For Summary

Discussion Overview

The discussion revolves around the problem of splitting a matrix of dimensions N x M into an arbitrary number of blocks P, with the possibility of blocks having different sizes. Participants explore methods and requirements for achieving this division.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant describes the challenge of finding a general method to split a matrix into an arbitrary number of blocks, noting that not all blocks need to be the same size.
  • Another participant inquires about additional requirements for the blocks, suggesting that there are many ways to split a matrix.
  • A later reply proposes a method to divide the matrix into blocks by finding numbers p and q such that p*q equals the number of blocks, with the condition that p is less than N and q is less than M. This method suggests splitting rows into p parts and columns into q parts, but notes that this approach results in aligned block borders.

Areas of Agreement / Disagreement

Participants have not reached a consensus on a specific method for splitting the matrix, and multiple approaches are being discussed without resolution.

Contextual Notes

The discussion does not clarify any specific limitations or assumptions regarding the sizes of the blocks or the nature of the matrix beyond the initial problem statement.

DarkFalz
Messages
71
Reaction score
0
Hello,

i am trying to solve the following problem, but with no success. I need to find a way to split a matrix with dimensions N x M into an arbitrary number of blocks P.

Not all blocks need to have the same size, say if we have a 16 x 25 matrix and want to split it into 8 blocks, we could get six 6 x 8 submatrices, and the remaining two have one extra column.

The thing is, although some situations are easy to solve, like the aformentioned one, i am having trouble in finding a general method to split an arbitrary matrix into a arbitrary number of blocks.

Note: when i say that not all matrices are required to have the same size, i was mentioning ending at a situation like the above mentioned, where the last column of blocks had one extra column of elements.

Thanks in advance
 
Physics news on Phys.org
Do you have any additional requirements for the blocks? There are many ways to split a matrix into blocks.
 
No i don't

No i don't, just the above mentioned.
 
To divide the matrix in X blocks, find numbers p,q with p*q=X and p<N, q<M. Split the rows into p parts and the columns into q parts, make blocks, done.
Like that?

Note that this just gives a special class of blocks, where the block borders are aligned.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K