Fix a 2-D matrix to have full rows (pad with zeros).
Input matrix.
Height, width, the padded matrix and the corresponding 0 or 0n and 1 or 1n.
Fix a 2-D matrix to have full rows (pad with zeros).