Returns a square matrix with the sum of the blocks of another square matrix.
smb(M,vect) A = smb(M,vect)
Square matrix to calculate the block's sum.
Vector of the sizes of each squared block. Note that the sum of all entries of this vector must be equal to the size of the M matrix.