mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
Merge pull request #10 from kvedala/documentation/fixes
Documentation/fixes
This commit is contained in:
commit
acbfd4d962
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* Compute factorial of arbitrarily large numbers by
|
* \brief Compute factorial of arbitrarily large numbers by
|
||||||
* storing individual digits in a byte.
|
* storing individual digits in a byte.
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.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
|
* 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;
|
int i, rows = mat_size, columns = mat_size;
|
||||||
|
|
||||||
double **A = (double **)malloc(sizeof(double) * mat_size);
|
double **A = (double **)malloc(sizeof(double *) * mat_size);
|
||||||
double **R = (double **)malloc(sizeof(double) * mat_size);
|
double **R = (double **)malloc(sizeof(double *) * mat_size);
|
||||||
double **Q = (double **)malloc(sizeof(double) * mat_size);
|
double **Q = (double **)malloc(sizeof(double *) * mat_size);
|
||||||
|
|
||||||
/* number of eigen values = matrix size */
|
/* number of eigen values = matrix size */
|
||||||
double *eigen_vals = (double *)malloc(sizeof(double) * mat_size);
|
double *eigen_vals = (double *)malloc(sizeof(double) * mat_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user