Calculates the direct product or direct sum of two algebraic structures.
The first structure
The second structure
Optional
The type of direct operation ("product" or "sum", defaults to "product").
Calculates the direct product or direct sum of two algebraic structures.