It should be possible yes, we'll look at why it fails.
On 15/03/2016 21:27, Steve wrote:
> Hi,
> Is it possible to do this?
>
> typedef boost::simd::pack<double> p_t;
> typedef boost::simd::pack<size_t> p_i;
>
> double v[] = {.1, .2, .3, .4};
> p_i i(0,2);
> boost::simd::load<p_t> (&v[0], i); // <=== compiler error below
>
> I got compiler error
>
>
> nt2/linux64/3.1.0/include/boost/simd/memory/functions/load.hpp: In
> instantiation of ‘Type boost::simd::load(const Pointer&, const Offset&)
> [with Type = boost::simd::pack<double>; Pointer = double*; Offset =
> boost::simd::pack<long unsigned int>]’:
> nt2_4.cpp:30:22: required from here
> nt2/linux64/3.1.0/include/boost/simd/memory/functions/load.hpp:67:64:
> error: no match for call to
> ‘(boost::dispatch::meta::dispatch_call<boost::simd::tag::load_(double*
> const&, boost::dispatch::meta::as_<boost::simd::pack<double> >, const
> boost::simd::pack<long unsigned int>&), void>::type {aka
> boost::dispatch::meta::implement<boost::dispatch::tag::unknown_,
> boost::dispatch::tag::formal_, boost::dispatch::tag::formal_(double*,
> boost::dispatch::meta::as_<boost::simd::pack<double> >,
> boost::simd::pack<long unsigned int>)>}) (double* const&,
> boost::dispatch::meta::as_<boost::simd::pack<double> >, const
> boost::simd::pack<long unsigned int>&)’
> return callee(ptr,boost::dispatch::meta::as_<Type>(),offset);
>
> Thanks,
> Steve
>
> --
> You received this message because you are subscribed to the Google
> Groups "nt2-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
nt2-dev+u...@googlegroups.com
> <mailto:
nt2-dev+u...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.