- double* b = (double*)malloc(k*sizeof(double));
- double* Phi = (double*)malloc(p*m*k*sizeof(double));
- double* Rho = (double*)malloc(m*m*k*sizeof(double));
- double* Pi = (double*)malloc(k*sizeof(double));
- double* gam2 = (double*)malloc(k*sizeof(double));
- double* pi2 = (double*)malloc(k*sizeof(double));
- double* Gram2 = (double*)malloc(p*p*k*sizeof(double));
- double* ps = (double*)malloc(m*k*sizeof(double));
- double* nY2 = (double*)malloc(m*k*sizeof(double));
- double* ps1 = (double*)malloc(n*m*k*sizeof(double));
- double* ps2 = (double*)malloc(p*m*k*sizeof(double));
- double* nY21 = (double*)malloc(n*m*k*sizeof(double));
- double* Gam = (double*)malloc(n*k*sizeof(double));
- double* X2 = (double*)malloc(n*p*k*sizeof(double));
- double* Y2 = (double*)malloc(n*m*k*sizeof(double));
+ 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));