Maybe just `return SGVector<float64_t>(m_alphas->get_array(), num);` is more concise.