39 #ifndef SHARK_LINALG_MODIFIEDKERNELMATRIX_H 40 #define SHARK_LINALG_MODIFIEDKERNELMATRIX_H 59 template <
class InputType,
class CacheType>
75 QpFloatType modifierEq,
76 QpFloatType modifierNe
77 ):
m_matrix(kernelfunction,data.inputs())
81 for(std::size_t i = 0; i !=
m_labels.size(); ++i){
88 {
return entry(i, j); }
91 QpFloatType
entry(std::size_t i, std::size_t j)
const 102 void row(std::size_t i, std::size_t start,std::size_t end, QpFloatType* storage)
const{
106 for(std::size_t j = start; j < end; j++){
108 storage[j-start] *= modifier;
115 blas::matrix_expression<M, blas::cpu_tag> & storage
118 for(std::size_t i = 0; i !=
size(); ++i){
120 for(std::size_t j = 0; j !=
size(); ++j){
122 storage()(i,j) *= modifier;