bug fix - first dimension of matrices points to pointers, hence get pointer size

Signed-off-by: Krishna Vedala <krishna.vedala@ieee.org>
This commit is contained in:
Krishna Vedala 2020-06-05 14:26:30 -04:00
parent d902f3595f
commit 8aeb36bac8
1 changed files with 3 additions and 3 deletions

View File

@ -82,9 +82,9 @@ int main(int argc, char **argv)
int i, rows = mat_size, columns = mat_size;
double **A = (double **)malloc(sizeof(double) * mat_size);
double **R = (double **)malloc(sizeof(double) * mat_size);
double **Q = (double **)malloc(sizeof(double) * mat_size);
double **A = (double **)malloc(sizeof(double *) * mat_size);
double **R = (double **)malloc(sizeof(double *) * mat_size);
double **Q = (double **)malloc(sizeof(double *) * mat_size);
/* number of eigen values = matrix size */
double *eigen_vals = (double *)malloc(sizeof(double) * mat_size);