49 REQUIRE(vector1.vlen==vector2.vlen,
50 "Dimension of vector1 (%d) is not equal to that of vector2 (%d)",
51 vector1.vlen, vector2.vlen);
53 Map<Matrix<T, Dynamic, 1> > vec1(vector1.vector, vector1.vlen);
54 Map<Matrix<T, Dynamic, 1> > vec2(vector2.vector, vector2.vlen);
55 return vec1.dot(vec2);
58 template class DenseEigen3DotProduct<bool>;
59 template class DenseEigen3DotProduct<char>;
60 template class DenseEigen3DotProduct<int8_t>;
61 template class DenseEigen3DotProduct<uint8_t>;
62 template class DenseEigen3DotProduct<int16_t>;
63 template class DenseEigen3DotProduct<uint16_t>;
64 template class DenseEigen3DotProduct<int32_t>;
65 template class DenseEigen3DotProduct<uint32_t>;
66 template class DenseEigen3DotProduct<int64_t>;
67 template class DenseEigen3DotProduct<uint64_t>;
68 template class DenseEigen3DotProduct<float32_t>;
69 template class DenseEigen3DotProduct<float64_t>;
70 template class DenseEigen3DotProduct<floatmax_t>;
71 template class DenseEigen3DotProduct<complex128_t>;
virtual T compute(SGVector< T > vector1, SGVector< T > vector2) const
Template class for Eigen3 dot product that performs dot product operation( {i=1}^d a_ib_i$ where $a...