Here you are not using either SGVector or SGMatrix, but float64_t*.
On 14 Jan 2014 10:20, "mazumdarparijat" <notifications@github.com> wrote:

> In src/shogun/clustering/KMeans.cpp:
>
> > @@ -454,6 +458,65 @@ void CKMeans::store_model_features()
> >  	SG_UNREF(rhs);
> >  }
> >
> > +SGMatrix<float64_t> CKMeans::kmeanspp()
> > +{
> > +	int32_t cent_id, mu_1, mu_next;
> > +	int32_t count=0;
> > +	float64_t dist_temp;
> > +	float64_t sum;
> > +
> > +	CDenseFeatures<float64_t>* muspp=new CDenseFeatures<float64_t>(0);
> > +	CDenseFeatures<float64_t>* lhs=(CDenseFeatures<float64_t>*)distance->replace_lhs(muspp);
> > +	int32_t num=lhs->get_num_vectors();
> > +	int32_t dim=lhs->get_num_features();
> > +	muspp->set_feature_matrix(SGMatrix<float64_t>(dim,k,false));
> > +	
> > +	float64_t *dists = SG_CALLOC(float64_t,num);
>
> Sir, Actually my initial version used SGVector mainly because my earlier
> commit of set_initial_centers() returned SGVector. But while rebasing I
> figured that KMeans has be refactored (commit by sonney2k) during which
> SGVectors had been changed to SGMatrix. So I finally changed to SGMatrix.
> Lets discuss this.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/shogun-toolbox/shogun/pull/1814/files#r8853802>
> .
>