67 int stmm_cblas(
int n_loc,
int m_loc,
double *T2_loc,
double *V,
double *TV2) {
69 cblas_dgemm(CblasColMajor, CblasNoTrans, CblasNoTrans, n_loc, m_loc, n_loc,
70 1, T2_loc, n_loc, (V), n_loc, 1, TV2, n_loc);
82 for (j = 0; j < n_loc; j++) {
83 for (i = 0; i < n_loc; i++) { T2_loc[j * n_loc + i] = 0; }
86 for (j = 0; j < n_loc;
88 for (i = 0; i < lambda_loc; i++) {
89 if (j - i >= 0) T2_loc[j * n_loc + j - i] = T_loc[i];
90 if (j + i < n_loc) T2_loc[j * n_loc + j + i] = T_loc[i];
106 for (i = 0; i < n_loc; i++) {
107 for (j = 0; j < n_loc; j++) {
108 fprintf(file,
"%.1f\t", T2_loc[i + j * n_loc]);
125 for (i = 0; i < n_loc; i++) {
126 for (j = 0; j < m_loc; j++) {
127 fprintf(file,
"%.1f\t", Mat[i + j * n_loc]);