Split a Matrix into and arbitrary number of blocks

AI Thread Summary
To split a matrix of dimensions N x M into an arbitrary number of blocks P, one approach is to find factors p and q such that p*q = P, with p<N and q<M. This method involves dividing the rows into p parts and the columns into q parts, creating blocks that may not all be the same size. However, this technique results in aligned block borders, which may not meet all requirements for arbitrary block sizes. The discussion highlights the challenge of developing a general method for splitting matrices into blocks of varying dimensions. A flexible solution is still sought to accommodate different block configurations.
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
 
Mathematics 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.
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top