Glas :Re: [glas] value_type |
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-10-03 06:17:08
On Monday 03 October 2005 6:46 am, Herman Bruyninckx wrote:
> On Mon, 3 Oct 2005, Karl Meerbergen wrote:
> > We now have started the development of some functions for vectors since
> > a few weeks. All of them rely on the fact that the value_type's are
> > numerical value types (NumericValue concept). In the first document
> > about GLAS we supposed that vectors and matrices only contain numerical
> > values. I recall vague suggestions on the mailing list on expanding the
> > value_type to other than float, double, std::complex<float>,
> > std::complex<double>.
> >
> > Before continuing with any more new algorithms, it might be good to know
> > which other value_type's should be supported.
>
> I can imagine some use cases for ints (e.g., computer vision, where each
> image is matrix of integer values, from 0-256, or 0-2^16), and for "bools"
> (e.g., vectors of digital IO, or "incidence" representations for graphs,
> etc.).
>
I often use complex<int>, even though the standard doesn't specifically
support it.