FIX: Incorrect dimension in the collapsed case.
FIX: Collapsed calculations.
ENH: Replaced ?gemm with ?ger where possible.