- float* b = (float*)malloc(k*sizeof(float));
- float* Phi = (float*)malloc(p*m*k*sizeof(float));
- float* Rho = (float*)malloc(m*m*k*sizeof(float));
- float* Pi = (float*)malloc(k*sizeof(float));
- float* gam2 = (float*)malloc(k*sizeof(float));
- float* pi2 = (float*)malloc(k*sizeof(float));
- float* Gram2 = (float*)malloc(p*p*k*sizeof(float));
- float* ps = (float*)malloc(m*k*sizeof(float));
- float* nY2 = (float*)malloc(m*k*sizeof(float));
- float* ps1 = (float*)malloc(n*m*k*sizeof(float));
- float* ps2 = (float*)malloc(p*m*k*sizeof(float));
- float* nY21 = (float*)malloc(n*m*k*sizeof(float));
- float* Gam = (float*)malloc(n*k*sizeof(float));
- float* X2 = (float*)malloc(n*p*k*sizeof(float));
- float* Y2 = (float*)malloc(n*m*k*sizeof(float));
+ Real* b = (Real*)malloc(k*sizeof(Real));
+ Real* Phi = (Real*)malloc(p*m*k*sizeof(Real));
+ Real* Rho = (Real*)malloc(m*m*k*sizeof(Real));
+ Real* Pi = (Real*)malloc(k*sizeof(Real));
+ Real* gam2 = (Real*)malloc(k*sizeof(Real));
+ Real* pi2 = (Real*)malloc(k*sizeof(Real));
+ Real* Gram2 = (Real*)malloc(p*p*k*sizeof(Real));
+ Real* ps = (Real*)malloc(m*k*sizeof(Real));
+ Real* nY2 = (Real*)malloc(m*k*sizeof(Real));
+ Real* ps1 = (Real*)malloc(n*m*k*sizeof(Real));
+ Real* ps2 = (Real*)malloc(p*m*k*sizeof(Real));
+ Real* nY21 = (Real*)malloc(n*m*k*sizeof(Real));
+ Real* Gam = (Real*)malloc(n*k*sizeof(Real));
+ Real* X2 = (Real*)malloc(n*p*k*sizeof(Real));
+ Real* Y2 = (Real*)malloc(n*m*k*sizeof(Real));