Boost logo

Boost :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2007-08-09 00:09:24

On 8 Aug 2007, at 16:07, Steven Watanabe wrote:

> They are still needed for the result of adjacent_difference
> on piecewise constant floating point series. What do you think
> of allowing runs to specify what kind of range they use, open,
> closed or half-open.
> struct half_open_range : mpl::int_<0> {};
> struct rhalf_open_range : mpl::int_<1> {}; // (]
> struct open_range : mpl::int_<2> {};
> struct closed_range : mpl::int_<3> {};
> I think that this would allow sparse floating point series
> to make sense without destroying consistency within the
> library.

Why do you need intervals for sparse series? Sparse series define
values only at a finite number of points, and not in intervals? Do
you mean piecewise constant series?

Boost list run by bdawes at, gregod at, cpdaniel at, john at