39 #ifndef SHARK_LINALG_GAUSSIANKERNELMATRIX_H 40 #define SHARK_LINALG_GAUSSIANKERNELMATRIX_H 53 template <
class T,
class CacheType>
75 for(std::size_t i = 0; i != elements; ++i,++iter){
83 {
return entry(i, j); }
86 QpFloatType
entry(std::size_t i, std::size_t j)
const 90 return (QpFloatType)std::exp(-
m_gamma * distance);
97 void row(std::size_t i, std::size_t start,std::size_t end, QpFloatType* storage)
const 99 typename ConstProxyReference<T>::type xi = *
x[i];
104 storage[j-start] = std::exp(-
m_gamma * distance);
111 blas::matrix_expression<M, blas::cpu_tag> & storage
113 for(std::size_t i = 0; i !=
size(); ++i){
114 row(i,0,
size(),&storage()(i,0));
142 std::vector<PointerType>
x;