Boost logo

Ublas :

Subject: Re: [ublas] enable complex @ int
From: Alfredo Correa (correaa_at_[hidden])
Date: 2009-09-29 21:20:23


On Tue, Sep 29, 2009 at 3:22 PM, Gunter Winkler <guwi17_at_[hidden]> wrote:
> Maybe this can be solved using enable_if in the return type. But, is
> std::complex<int> of any use?

I have no idea if this contributes at all, but there is something
called Gaussian Numbers
(http://en.wikipedia.org/wiki/Gaussian_integer). I am not even sure if
std::complex<int> (with the proper considerations with respect to
division) is the appropriate way to implement Gaussian Intergers, it
might.
The only point at which I saw a serius application for it was in a
topology class. (sorry, I don't remember the context).

Thanks,
Alfredo