Merge pull request #10 from kvedala/documentation/fixes

Documentation/fixes
This commit is contained in:
Krishna Vedala 2020-06-05 16:02:55 -04:00 committed by GitHub
commit acbfd4d962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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 <stdio.h>

View File

@ -10,7 +10,7 @@
#include <stdlib.h>
#include <time.h>
#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);