Skip to content

Commit

Permalink
remove inline
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpsy committed May 16, 2020
1 parent 9085a9f commit b7d03be
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/shogun/kernel/ANOVAKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class ANOVAKernel: public DotKernel
/** getter for degree parameter
* @return kernel parameter cardinality
*/
inline int32_t get_cardinality() { return this->m_cardinality; }
int32_t get_cardinality() { return this->m_cardinality; }

/** setter for degree parameter
* @param value kernel parameter cardinality
*/
inline void set_cardinality(int32_t value) { this->m_cardinality = value; }
void set_cardinality(int32_t value) { this->m_cardinality = value; }

/** compute rec 1
* @param idx_a
Expand Down
8 changes: 4 additions & 4 deletions src/shogun/kernel/AUCKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ namespace shogun
*/
bool setup_auc_maximization();

inline virtual EKernelType get_kernel_type() { return K_AUC; }
virtual EKernelType get_kernel_type() { return K_AUC; }

inline virtual const char* get_name() const { return "AUCKernel"; }
virtual const char* get_name() const { return "AUCKernel"; }

inline virtual EFeatureClass get_feature_class() { return C_DENSE; }
virtual EFeatureClass get_feature_class() { return C_DENSE; }

inline virtual EFeatureType get_feature_type() { return F_WORD; }
virtual EFeatureType get_feature_type() { return F_WORD; }

protected:
virtual float64_t compute(int32_t idx_a, int32_t idx_b);
Expand Down
10 changes: 5 additions & 5 deletions src/shogun/kernel/ConstKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ class ConstKernel: public Kernel

virtual ~ConstKernel();

inline virtual EKernelType get_kernel_type() { return K_CONST; }
virtual EKernelType get_kernel_type() { return K_CONST; }

inline virtual EFeatureType get_feature_type() { return F_ANY; }
virtual EFeatureType get_feature_type() { return F_ANY; }

inline virtual EFeatureClass get_feature_class() { return C_ANY; }
virtual EFeatureClass get_feature_class() { return C_ANY; }

inline virtual const char* get_name() const { return "ConstKernel"; }
virtual const char* get_name() const { return "ConstKernel"; }

protected:
inline virtual float64_t compute(int32_t row, int32_t col) { return m_const_val; }
virtual float64_t compute(int32_t row, int32_t col) { return m_const_val; }

protected:
float64_t m_const_val = 1.0;
Expand Down
10 changes: 5 additions & 5 deletions src/shogun/kernel/DiagKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ class DiagKernel: public Kernel

virtual ~DiagKernel();

inline virtual EFeatureType get_feature_type(){ return F_ANY; }
virtual EFeatureType get_feature_type(){ return F_ANY; }

inline virtual EFeatureClass get_feature_class(){ return C_ANY; }
virtual EFeatureClass get_feature_class(){ return C_ANY; }

inline virtual EKernelType get_kernel_type() { return K_DIAG; }
virtual EKernelType get_kernel_type() { return K_DIAG; }

inline virtual const char* get_name() const { return "DiagKernel"; }
virtual const char* get_name() const { return "DiagKernel"; }

protected:
inline virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
{
return idx_a == idx_b ? m_diag : 0;
}
Expand Down

0 comments on commit b7d03be

Please sign in to comment.