31 #ifndef VECTOR_SUM_IMPL_H_
32 #define VECTOR_SUM_IMPL_H_
56 namespace implementation
64 template <enum Backend,
class Vector>
68 typedef typename Vector::Scalar
T;
82 template <
class Vector>
86 typedef typename Vector::Scalar
T;
107 template <
class Vector>
111 typedef typename Vector::Scalar
T;
119 static T
compute(CGPUVector<T> vec)
121 CGPUMatrix<T> m(vec.vector, vec.vlen, 1, vec.offset);
122 return sum<Backend::VIENNACL, CGPUMatrix<T> >
::compute(m,
false);
126 #endif // HAVE_VIENNACL
133 #endif // VECTOR_SUM_IMPL_H_
static T compute(SGVector< T > vec)
static T compute(Vector a)
all of classes and functions are contained in the shogun namespace
Generic class vector_sum which provides a static compute method. This class is specialized for differ...
Vector::Scalar vector_sum(Vector a)