I'm using cblass_dgemm to multiply two matrices
It is supposed to calculate B = A' x A;
row_train = 10304, col_train = 5;
gsl_matrix *mean_centred_train = gsl_matrix_alloc(row_train, col_train);
gsl_matrix * image_for_eigen = gsl_matrix_alloc(col_train, col_train);
This is how I call it:
cblas_dgemm(CblasRowMajor, CblasTrans, CblasNoTrans, mean_centred_train->size1, mean_centred_train->size2, mean_centred_train->size2, 1, mean_centred_train->data, mean_centred_train->size1, mean_centred_train->data, mean_centred_train->size1, 1, image_for_eigen->data, image_for_eigen->size1);
And when I run the program I get a segmentation fault, and I'm pretty sure the sizes of matrices are correct.