SGVector<T>::SGVector(EigenVectorXt& vec) : SGReferencedData(false), vector(vec.data()), vlen(vec.size()) { }
SGVector<T>::SGVector(EigenVectorXt& vec) : SGReferencedData(false), vector(vec.data()), vlen(vec.size()), gpu_ptr(NULL) { m_on_gpu.store(false, std::memory_order_release); }