Glas :Re: [glas] value_type |
From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2005-10-06 02:14:41
Karl Meerbergen wrote:
>Peter Gottschling wrote:
>
>
>
>>On 05.10.2005, at 10:10, Karl Meerbergen wrote:
>>
>>
>>
>>
>>
>>>Hello all,
>>>
>>>I split the NumericValue concept as follows (and adapted concept,
>>>models and
>>>code) to this proposal:
>>>
>>> * ClearableValue : zero<T>() needed for clearing
>>> * AdditiveGroupValue: +, -: used by the norm functions
>>> * RingValue: added * (not needed at this stage, but will be for
>>>dot)
>>> * HasModulus: needed for norm functions
>>>
>>>
>>>
>>>
>>Hi Karl,
>>
>>I would prefer HasMagnitude or something along these lines. Modulus is
>>for me the remainder of a division.
>>
>>Cheers,
>>
>>Peter
>>
>>
>>
>
>I might be mistaken, but I thought that modulus is the term for absolute
>value for complex (and thus also real) values, while modulo is used for
>the remainder of the division?
>
>Karl
>
On second thought, it might perhaps be better to use HasAbsoluteValue
than HasModulus.
In fact, good old fortran also uses abs, so why shouldn't we.
Karl