xgboost

Public Member Functions | Public Attributes | List of all members
xgboost::common::OptionalWeights Struct Reference

`#include <common.h>`

Collaboration diagram for xgboost::common::OptionalWeights:

## Public Member Functions
| OptionalWeights (Span< float const > w)
| OptionalWeights (float w)
XGBOOST_DEVICE float | operator[] (size_t i) const

## Public Attributes
Span< float const > | weights
float | dft {1.0f}

## Constructor & Destructor Documentation

## ◆ OptionalWeights() [1/2]

xgboost::common::OptionalWeights::OptionalWeights | ( | Span< float const > | w | ) |
| inline explicit

## ◆ OptionalWeights() [2/2]

xgboost::common::OptionalWeights::OptionalWeights | ( | float | w | ) |
| inline explicit

## Member Function Documentation

## ◆ operator[]()

XGBOOST_DEVICE float xgboost::common::OptionalWeights::operator[] | ( | size_t | i | ) | const
| inline

## Member Data Documentation

## ◆ dft

float xgboost::common::OptionalWeights::dft {1.0f}

## ◆ weights

Span<float const> xgboost::common::OptionalWeights::weights

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

- /home/runner/work/xgboost/xgboost/src/common/common.h