[boost] arithmetic traits

2003-08-14 Thread Jaakko Jarvi
In our last exciting episode "Neal D. Becker" wrote: > User-Agent: KMail/1.5.3 > I'm thinking that it would be useful to implement a traits class that would > give the return type of mixed scalar-complex arithmetic operations. This > would allow one to write generic algorithms that operate on

[boost] arithmetic traits

2003-08-14 Thread Neal D. Becker
I'm thinking that it would be useful to implement a traits class that would give the return type of mixed scalar-complex arithmetic operations. This would allow one to write generic algorithms that operate on both scalar and complex types, inferring the return type. Any opinions? pgp0.pg

RE: [boost] arithmetic traits

2003-08-14 Thread Toon Knapen
Arithmetic traits can be found in ublas. Just look for promote_traits in the ublas headers. > > I'm thinking that it would be useful to implement a traits > class that > > would > > give the return type of mixed scalar-complex arithmetic > operations. This > > would allow one to write generic