Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
xgboost::predictor::EntryOneAPI Struct Reference

Element from a sparse vector. More...

Public Member Functions

 EntryOneAPI ()=default
 default constructor
 
 EntryOneAPI (bst_feature_t index, bst_float fvalue)
 constructor with index and value
 
 EntryOneAPI (const Entry &entry)
 
bool operator== (const EntryOneAPI &other) const
 

Static Public Member Functions

static bool CmpValue (const EntryOneAPI &a, const EntryOneAPI &b)
 reversely compare feature values
 

Data Fields

bst_feature_t index
 feature index
 
bst_float fvalue
 feature value
 

Detailed Description

Element from a sparse vector.

Constructor & Destructor Documentation

◆ EntryOneAPI()

xgboost::predictor::EntryOneAPI::EntryOneAPI ( bst_feature_t  index,
bst_float  fvalue 
)
inline

constructor with index and value

Parameters
indexThe feature or row index.
fvalueThe feature value.

The documentation for this struct was generated from the following file: