44 for (int32_t i=0;i<m_capacity;i++)
69 else if (r>=m_capacity)
76 else if (m_dists[l]>=m_dists[r])
91 m_dists[i]=m_dists[i_swap];
92 m_inds[i]=m_inds[i_swap];
110 for (int32_t i=m_capacity-1;i>-1;i--)
112 new_dists[i]=m_dists[0];
113 new_inds[i]=m_inds[0];
133 for (int32_t i=m_capacity-1;i>-1;i--)
135 new_dists[i]=m_dists[0];
136 new_inds[i]=m_inds[0];
void push(index_t index, float64_t dist)
SGVector< index_t > get_indices()
all of classes and functions are contained in the shogun namespace
SGVector< float64_t > get_dists()
static const float64_t MAX_REAL_NUMBER