# HomWithComponents -- computes Hom, preserving direct sum information

• Usage:
H = Hom(M,N)
• Inputs:
• M, ,
• N, ,
• Outputs:
• H, ,

## Description

If M and/or N are direct sum modules (isDirectSum M == true) then H is the direct sum of the Homs between the components. This SHOULD be built into Hom(M,N), but isn't as of M2, v. 1.7