Commit 15cd0042 authored by Nicolas Mellado's avatar Nicolas Mellado

Do not use operator, with cuda

parent e72002c3
......@@ -31,7 +31,13 @@ SphereFit<DataPoint, _WFunctor, T>::addNeighbor(const DataPoint& _nei)
if (w > Scalar(0.))
{
VectorA a;
#ifdef __CUDACC__
a(0) = 1;
a.template segment<DataPoint::Dim>(1) = q;
a(DataPoint::Dim+1) = q.squaredNorm();
#else
a << 1, q, q.squaredNorm();
#endif
m_matA += w * a * a.transpose();
m_sumW += w;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment