39 #ifndef SHARK_LINALG_EXAMPLEMODIFIEDKERNELMATRIX_H 40 #define SHARK_LINALG_EXAMPLEMODIFIEDKERNELMATRIX_H 58 template <
typename InputType,
typename CacheType>
80 {
return entry(i, j); }
101 QpFloatType
entry(std::size_t i, std::size_t j)
const 111 *
x[j]) * (1.0 / m_scalingCoefficients[i]) * (1.0 / m_scalingCoefficients[j]);
118 void row(std::size_t i, std::size_t start,std::size_t end, QpFloatType* storage)
const{
119 for(std::size_t j = start; j < end; j++){
120 storage[j-start] =
entry(i,j);
129 for(std::size_t i = 0; i !=
size(); ++i){
130 for(std::size_t j = 0; j !=
size(); ++j){
131 storage(i,j) =
entry(i,j);
139 m_scalingCoefficients = scalingCoefficients;
149 std::vector<PointerType>
x;
156 RealVector m_scalingCoefficients;