Glas :Re: [glas] value_type |
From: Peter Gottschling (pgottsch_at_[hidden])
Date: 2005-10-06 08:55:11
On 06.10.2005, at 02:14, Karl Meerbergen wrote:
> 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
>
Why not. HasAbsoluteValue is also fine with me.
Peter
>
> _______________________________________________
> glas mailing list
> glas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/glas
>
------------
Peter Gottschling
Research Associate
Open Systems Laboratory
Indiana University
301i Lindley Hall
Bloomington, IN 47405
Tel.: +1 812 855-8898 Fax: +1 812 856 0853
http://www.osl.iu.edu/~pgottsch