! * \brief Get weights for queries, if not exists, will return nullptr * \return Pointer of weights for queries */
| 182 | * \return Pointer of weights for queries |
| 183 | */ |
| 184 | inline const label_t* query_weights() const { |
| 185 | if (!query_weights_.empty()) { |
| 186 | return query_weights_.data(); |
| 187 | } else { |
| 188 | return nullptr; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /*! |
| 193 | * \brief Get initial scores, if not exists, will return nullptr |