question: public static int computeBlockSize ( MatrixCharacteristics mc ) { int brlen = mc . getRowsPerBlock ( ) ; int basic = Math . max ( ( int ) ( FrameBlock . BUFFER_SIZE / mc . getCols ( ) ) , 1 ) ; int div = ( int ) Math . ceil ( ( double ) brlen / basic ) ; while ( brlen % div != 0 ) div ++ ; return brlen / div ; }
target:  Computes an output row block size that ensures matrix block alignment  and contains at most FrameBlock.BUFFER_SIZE cells per block.