|
Ublas : |
From: Michael Stevens (mail_at_[hidden])
Date: 2005-08-18 10:39:41
Gunter,
On Thursday 18 August 2005 14:49, Gunter Winkler wrote:
> Hello,
>
> last night I got another idea. Can we give a partial specialization of
> the unbounded_array constructor for std::complex?
>
> template<class ALLOC>
> unbounded_array< std::complex<double>, std::allocator<
> std::complex<double> >
> unbounded_array(size_type size, ALLOC A) {
> ... skip the call of new ? ...
> }
Sound like the way to do it. Has the advantage it can be done by the user for
any type. Or do you thing we should add it by default to uBLAS for
std::complex with float double and long double?
Michael