af::array centers = af::constant(0,100);
gfor(af::seq i,100) centers(i) = 2.1*i ;terminate called after throwing an instance of 'af::exception'
what(): ArrayFire Exception(203): Invalid input size
In /var/lib/jenkins-slave/workspace/arrayfire-linux-mkl-graphics-installer/src/api/cpp/array.cpp:530
Abandon (core dumped)
float * seq to be the problem so I try this :gfor(af::seq i,nbin) centers(i) = 2*i ;
It executes correctly but rises this error at compilation :
warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
gfor(af::seq i,nbin) centers(i) = 2*i ;
^
In file included from /usr/local/include/af/array.h:12:0,
from /usr/local/include/arrayfire.h:259,
from umbral_af.cpp:7:
/usr/local/include/af/seq.h:56:23: note: candidate 1: af::seq af::operator*(double, af::seq)
friend inline seq operator*(double x, seq y) { return y * x; }
^
In file included from /usr/local/include/arrayfire.h:259:0,
from umbral_af.cpp:7:
/usr/local/include/af/array.h:982:5: note: candidate 2: af::array af::operator*(const int&, const af::array&)
BIN_OP(operator* )
^
gfor(af::seq i,nbin) centers(i) = 2.5*i ;// af::info
ArrayFire v3.0.2 (CUDA, 64-bit Linux, build 93427f0)
Platform: CUDA Toolkit 7, Driver: 346.46
[0] NVS 315, 1024 MB, CUDA Compute 2.1centers = 2*icenters= 2.0*i
--
You received this message because you are subscribed to the Google Groups "ArrayFire Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arrayfire-use...@googlegroups.com.
To post to this group, send email to arrayfi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arrayfire-users/ceae7f2d-fd2d-4ac7-bf31-9f683a2c5521%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.