Working before zeroing the lower half of matrix.
Zeroing the lower half of result matrix.