diff --git a/misc/factorial_large_number.c b/misc/factorial_large_number.c index 68acfb37..2a77ddc2 100644 --- a/misc/factorial_large_number.c +++ b/misc/factorial_large_number.c @@ -1,6 +1,6 @@ /** * @file - * Compute factorial of arbitrarily large numbers by + * \brief Compute factorial of arbitrarily large numbers by * storing individual digits in a byte. */ #include diff --git a/numerical_methods/qr_eigen_values.c b/numerical_methods/qr_eigen_values.c index 442264d5..cfbb961c 100644 --- a/numerical_methods/qr_eigen_values.c +++ b/numerical_methods/qr_eigen_values.c @@ -10,7 +10,7 @@ #include #include -#define LIMS 9 /**< */ +#define LIMS 9 /**< limit of range of matrix values */ /** * create a square matrix of given size with random elements @@ -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);