Skip to content

Commit 8c463ff

Browse files
committed
style: fix indentation in C files
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 61209d2 commit 8c463ff

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/mean/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ static double random_uniform( const double min, const double max ) {
9393
*/
9494
static double benchmark( void ) {
9595
double elapsed;
96-
double a[ 100 ];
97-
double b[ 100 ];
96+
double a[ 100 ];
97+
double b[ 100 ];
9898
double y;
9999
double t;
100100
int i;

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/mean/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ int main( void ) {
2929
double mean;
3030
double a;
3131
double b;
32-
int i;
32+
int i;
3333

3434
for ( i = 0; i < 10; i++ ) {
3535
a = random_uniform( 0.0, 10.0 );
36-
b = random_uniform( 0.0, 10.0 );
37-
mean = stdlib_base_dists_kumaraswamy_mean( a, b );
36+
b = random_uniform( 0.0, 10.0 );
37+
mean = stdlib_base_dists_kumaraswamy_mean( a, b );
3838
printf( "a: %.4f, b: %.4f, E(X;a,b): %.4f\n", a, b, mean );
3939
}
4040
}

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/mean/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
/**
2424
* Returns the expected value of a Kumaraswamy's double bounded distribution.
2525
*
26-
* @param a first shape parameter
27-
* @param b second shape parameter
26+
* @param a first shape parameter
27+
* @param b second shape parameter
2828
* @return expected value
2929
*
3030
* @example
@@ -36,7 +36,7 @@ double stdlib_base_dists_kumaraswamy_mean( const double a, const double b ) {
3636
stdlib_base_is_nan( a ) ||
3737
stdlib_base_is_nan( b ) ||
3838
a <= 0.0 ||
39-
b <= 0.0
39+
b <= 0.0
4040
) {
4141
return 0.0/0.0; // NaN
4242
}

lib/node_modules/@stdlib/stats/base/dists/normal/kurtosis/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ static double random_uniform( const double min, const double max ) {
9393
*/
9494
static double benchmark( void ) {
9595
double elapsed;
96-
double mu[ 100 ];
9796
double sigma[ 100 ];
97+
double mu[ 100 ];
9898
double y;
9999
double t;
100100
int i;
101101

102102
for ( i = 0; i < 100; i++ ) {
103103
mu[ i ] = random_uniform( -10.0, 10.0 );
104-
sigma[ i ] = random_uniform( 0.1, 10.0 );
104+
sigma[ i ] = random_uniform( 0.1, 10.0 );
105105
}
106106

107107
t = tic();

lib/node_modules/@stdlib/stats/base/dists/normal/kurtosis/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ static double random_uniform( const double min, const double max ) {
2626
}
2727

2828
int main( void ) {
29-
double sigma;
29+
double sigma;
3030
double mu;
31-
double y;
32-
int i;
31+
double y;
32+
int i;
3333

3434
for ( i = 0; i < 10; i++ ) {
3535
mu = random_uniform( -5.0, 5.0 );

lib/node_modules/@stdlib/stats/base/dists/normal/skewness/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ static double random_uniform( const double min, const double max ) {
9393
*/
9494
static double benchmark( void ) {
9595
double elapsed;
96-
double mu[ 100 ];
9796
double sigma[ 100 ];
97+
double mu[ 100 ];
9898
double y;
9999
double t;
100100
int i;
101101

102102
for ( i = 0; i < 100; i++ ) {
103103
mu[ i ] = random_uniform( -10.0, 10.0 );
104-
sigma[ i ] = random_uniform( 0.1, 10.0 );
104+
sigma[ i ] = random_uniform( 0.1, 10.0 );
105105
}
106106

107107
t = tic();

0 commit comments

Comments
 (0)