matrices, direct sums, and finite direct sums