mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 21:41:59 +03:00
Merge pull request #10 from kvedala/documentation/fixes
Documentation/fixes
This commit is contained in:
commit
acbfd4d962
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user