[NumericPrelude] GCD as monoid
lemming at henning-thielemann.de
Mon Jul 5 03:44:50 EDT 2010
On Sun, 4 Jul 2010, Paul McJones wrote:
> Would this be like calculating the alignment for a C struct that contains
> various members with individual alignment requirements, in which case
> wouldn't LCM be used, e.g. alignment for a 2-byte object and an 8-byte object
> would be 8 bytes?
Sorry, yes, the alignment is computed with LCM, not GCD.
More information about the Numeric-Prelude