Skip to content

Commit 6a0d6b8

Browse files
committed
style: update to use tabs for indentation
--- 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 8553770 commit 6a0d6b8

File tree

40 files changed

+502
-501
lines changed

40 files changed

+502
-501
lines changed

lib/node_modules/@stdlib/blas/base/cscal/src/cscal_cblas.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void API_SUFFIX(c_cscal_ndarray)( const CBLAS_INT N, const stdlib_complex64_t ca
5050
stdlib_complex64_t *cx = (stdlib_complex64_t *)CX;
5151
CBLAS_INT sx = strideX;
5252

53-
cx += stdlib_strided_min_view_buffer_index( N, strideX, offsetX );
53+
cx += stdlib_strided_min_view_buffer_index( N, strideX, offsetX );
5454
if ( sx < 0 ) {
5555
sx = -sx;
5656
}

lib/node_modules/@stdlib/blas/base/sdsdot/src/sdsdot_f.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
*/
1818

1919
/**
20-
* Compute the dot product of two single-precision floating-point vectors with extended accumulation.
21-
*
22-
* @see <a href="http://www.netlib.org/lapack/expolore-html/df/d28/group__single__blas__level1.html">sdsdot</a>
23-
*/
20+
* Compute the dot product of two single-precision floating-point vectors with extended accumulation.
21+
*
22+
* @see <a href="http://www.netlib.org/lapack/expolore-html/df/d28/group__single__blas__level1.html">sdsdot</a>
23+
*/
2424
#include "stdlib/blas/base/sdsdot.h"
2525
#include "stdlib/blas/base/sdsdot_fortran.h"
2626
#include "stdlib/blas/base/shared.h"

lib/node_modules/@stdlib/blas/base/srotm/examples/c/example.c

+22-22
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,33 @@
2020
#include <stdio.h>
2121

2222
int main( void ) {
23-
// Create strided arrays:
24-
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f };
25-
float y[] = { 6.0f, 7.0f, 8.0f, 9.0f, 10.0f };
23+
// Create strided arrays:
24+
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f };
25+
float y[] = { 6.0f, 7.0f, 8.0f, 9.0f, 10.0f };
2626

27-
// Specify the number of elements:
28-
const int N = 5;
27+
// Specify the number of elements:
28+
const int N = 5;
2929

30-
// Specify stride lengths:
31-
const int strideX = 1;
32-
const int strideY = 1;
30+
// Specify stride lengths:
31+
const int strideX = 1;
32+
const int strideY = 1;
3333

34-
// Specify parameters for the modified Givens transformation:
35-
const float param[5] = { 0.0f, 0.0f, 2.0f, -3.0f, 0.0f };
34+
// Specify parameters for the modified Givens transformation:
35+
const float param[5] = { 0.0f, 0.0f, 2.0f, -3.0f, 0.0f };
3636

37-
// Apply plane rotation:
38-
c_srotm( N, x, strideX, y, strideY, param );
37+
// Apply plane rotation:
38+
c_srotm( N, x, strideX, y, strideY, param );
3939

40-
// Print the result:
41-
for ( int i = 0; i < 5; i++ ) {
42-
printf( "x[ %i ] = %f, y[ %i ] = %f\n", i, x[ i ], i, y[ i ] );
43-
}
40+
// Print the result:
41+
for ( int i = 0; i < 5; i++ ) {
42+
printf( "x[ %i ] = %f, y[ %i ] = %f\n", i, x[ i ], i, y[ i ] );
43+
}
4444

45-
// Apply plane rotation:
46-
c_srotm_ndarray( N, x, -strideX, N-1, y, -strideY, N-1, param );
45+
// Apply plane rotation:
46+
c_srotm_ndarray( N, x, -strideX, N-1, y, -strideY, N-1, param );
4747

48-
// Print the result:
49-
for ( int i = 0; i < 5; i++ ) {
50-
printf( "x[ %i ] = %f, y[ %i ] = %f\n", i, x[ i ], i, y[ i ] );
51-
}
48+
// Print the result:
49+
for ( int i = 0; i < 5; i++ ) {
50+
printf( "x[ %i ] = %f, y[ %i ] = %f\n", i, x[ i ], i, y[ i ] );
51+
}
5252
}

lib/node_modules/@stdlib/blas/ext/base/dapxsumkbn2/src/addon.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
* @return Node-API value
3535
*/
3636
static napi_value addon( napi_env env, napi_callback_info info ) {
37-
STDLIB_NAPI_ARGV( env, info, argv, argc, 4 );
38-
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
39-
STDLIB_NAPI_ARGV_DOUBLE( env, alpha, argv, 1 );
40-
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
41-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
37+
STDLIB_NAPI_ARGV( env, info, argv, argc, 4 );
38+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
39+
STDLIB_NAPI_ARGV_DOUBLE( env, alpha, argv, 1 );
40+
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
41+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
4242
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX(stdlib_strided_dapxsumkbn2)( N, alpha, X, strideX ), v );
4343
return v;
4444
}
@@ -51,12 +51,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
5151
* @return Node-API value
5252
*/
5353
static napi_value addon_method( napi_env env, napi_callback_info info ) {
54-
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
55-
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
56-
STDLIB_NAPI_ARGV_DOUBLE( env, alpha, argv, 1 );
57-
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
54+
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
55+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
56+
STDLIB_NAPI_ARGV_DOUBLE( env, alpha, argv, 1 );
57+
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
5858
STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 4 );
59-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
59+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
6060
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX(stdlib_strided_dapxsumkbn2_ndarray)( N, alpha, X, strideX, offsetX ), v );
6161
return v;
6262
}

lib/node_modules/@stdlib/blas/ext/base/dcusumpw/src/addon.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @return Node-API value
3434
*/
3535
static napi_value addon( napi_env env, napi_callback_info info ) {
36-
STDLIB_NAPI_ARGV( env, info, argv, argc, 6 );
36+
STDLIB_NAPI_ARGV( env, info, argv, argc, 6 );
3737
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3838
STDLIB_NAPI_ARGV_DOUBLE( env, sum, argv, 1 );
3939
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );

lib/node_modules/@stdlib/blas/ext/base/dnannsumpw/src/addon.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@
3434
* @return Node-API value
3535
*/
3636
static napi_value addon( napi_env env, napi_callback_info info ) {
37-
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
38-
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
39-
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
40-
STDLIB_NAPI_ARGV_INT64( env, strideOut, argv, 4 );
41-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
42-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Out, 2, strideOut, argv, 3 );
37+
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
38+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
39+
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
40+
STDLIB_NAPI_ARGV_INT64( env, strideOut, argv, 4 );
41+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
42+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Out, 2, strideOut, argv, 3 );
4343

44-
int64_t io = stdlib_strided_stride2offset( 2, strideOut );
45-
CBLAS_INT n;
46-
Out[ io ] = API_SUFFIX(stdlib_strided_dnannsumpw)( N, X, strideX, &n );
47-
Out[ io + strideOut ] = (double)n;
44+
int64_t io = stdlib_strided_stride2offset( 2, strideOut );
45+
CBLAS_INT n;
46+
Out[ io ] = API_SUFFIX(stdlib_strided_dnannsumpw)( N, X, strideX, &n );
47+
Out[ io + strideOut ] = (double)n;
4848

49-
return NULL;
49+
return NULL;
5050
}
5151

5252
/**

lib/node_modules/@stdlib/blas/ext/base/dsort2sh/src/addon.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
* @return Node-API value
3333
*/
3434
static napi_value addon( napi_env env, napi_callback_info info ) {
35-
STDLIB_NAPI_ARGV( env, info, argv, argc, 6 );
36-
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
37-
STDLIB_NAPI_ARGV_DOUBLE( env, order, argv, 1 );
38-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, order, argv, 2 );
39-
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
40-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, order, argv, 4 );
41-
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 );
35+
STDLIB_NAPI_ARGV( env, info, argv, argc, 6 );
36+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
37+
STDLIB_NAPI_ARGV_DOUBLE( env, order, argv, 1 );
38+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, order, argv, 2 );
39+
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
40+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, order, argv, 4 );
41+
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 );
4242

43-
c_dsort2sh( N, order, X, strideX, Y, strideY );
43+
c_dsort2sh( N, order, X, strideX, Y, strideY );
4444

45-
return NULL;
45+
return NULL;
4646
}
4747

4848
STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

lib/node_modules/@stdlib/blas/ext/base/snansumkbn/src/addon.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
* @return Node-API value
3333
*/
3434
static napi_value addon( napi_env env, napi_callback_info info ) {
35-
STDLIB_NAPI_ARGV( env, info, argv, argc, 3 );
36-
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
37-
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 2 );
38-
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, stride, argv, 1 );
35+
STDLIB_NAPI_ARGV( env, info, argv, argc, 3 );
36+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
37+
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 2 );
38+
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, stride, argv, 1 );
3939

40-
napi_value v;
41-
napi_status status = napi_create_double( env, stdlib_strided_snansumkbn( N, X, stride ), &v );
42-
assert( status == napi_ok );
40+
napi_value v;
41+
napi_status status = napi_create_double( env, stdlib_strided_snansumkbn( N, X, stride ), &v );
42+
assert( status == napi_ok );
4343

44-
return v;
44+
return v;
4545
}
4646

4747
STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

lib/node_modules/@stdlib/blas/ext/base/snansumkbn2/src/addon.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
* @return Node-API value
3333
*/
3434
static napi_value addon( napi_env env, napi_callback_info info ) {
35-
STDLIB_NAPI_ARGV( env, info, argv, argc, 3 );
36-
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
37-
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 2 );
38-
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, stride, argv, 1 );
35+
STDLIB_NAPI_ARGV( env, info, argv, argc, 3 );
36+
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
37+
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 2 );
38+
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, stride, argv, 1 );
3939

40-
napi_value v;
41-
napi_status status = napi_create_double( env, stdlib_strided_snansumkbn2( N, X, stride ), &v );
42-
assert( status == napi_ok );
40+
napi_value v;
41+
napi_status status = napi_create_double( env, stdlib_strided_snansumkbn2( N, X, stride ), &v );
42+
assert( status == napi_ok );
4343

44-
return v;
44+
return v;
4545
}
4646

4747
STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

lib/node_modules/@stdlib/math/base/assert/is-integer/examples/c/example.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
#include <stdbool.h>
2323

2424
int main( void ) {
25-
double x;
26-
bool v;
27-
int i;
28-
29-
for ( i = 0; i < 100; i++ ) {
30-
x = ( ( (double)rand() / (double)RAND_MAX ) * 100.0 ) - 50.0;
31-
v = stdlib_base_is_integer( x );
32-
printf( "x = %lf, is_integer(x) = %s\n", x, ( v ) ? "true" : "false" );
33-
}
25+
double x;
26+
bool v;
27+
int i;
28+
29+
for ( i = 0; i < 100; i++ ) {
30+
x = ( ( (double)rand() / (double)RAND_MAX ) * 100.0 ) - 50.0;
31+
v = stdlib_base_is_integer( x );
32+
printf( "x = %lf, is_integer(x) = %s\n", x, ( v ) ? "true" : "false" );
33+
}
3434
}

lib/node_modules/@stdlib/math/base/special/acos/examples/c/example.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
#include <stdio.h>
2121

2222
int main( void ) {
23-
const double x[] = { -1.0, -0.78, -0.56, -0.33, -0.11, 0.11, 0.33, 0.56, 0.78, 1.0 };
23+
const double x[] = { -1.0, -0.78, -0.56, -0.33, -0.11, 0.11, 0.33, 0.56, 0.78, 1.0 };
2424

25-
double v;
26-
int i;
27-
for ( i = 0; i < 10; i++ ) {
28-
v = stdlib_base_acos( x[ i ] );
29-
printf( "acos(%lf) = %lf\n", x[ i ], v );
30-
}
25+
double v;
26+
int i;
27+
for ( i = 0; i < 10; i++ ) {
28+
v = stdlib_base_acos( x[ i ] );
29+
printf( "acos(%lf) = %lf\n", x[ i ], v );
30+
}
3131
}

lib/node_modules/@stdlib/math/base/special/acosh/examples/c/example.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
#include <stdio.h>
2121

2222
int main( void ) {
23-
const double x[] = { 1.0, 1.45, 1.89, 2.33, 2.78, 3.22, 3.66, 4.11, 4.55, 5.0 };
23+
const double x[] = { 1.0, 1.45, 1.89, 2.33, 2.78, 3.22, 3.66, 4.11, 4.55, 5.0 };
2424

25-
double v;
26-
int i;
27-
for ( i = 0; i < 10; i++ ) {
28-
v = stdlib_base_acosh( x[ i ] );
29-
printf( "acosh(%lf) = %lf\n", x[ i ], v );
30-
}
25+
double v;
26+
int i;
27+
for ( i = 0; i < 10; i++ ) {
28+
v = stdlib_base_acosh( x[ i ] );
29+
printf( "acosh(%lf) = %lf\n", x[ i ], v );
30+
}
3131
}

lib/node_modules/@stdlib/math/base/special/acoth/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
* // returns ~0.5493
3131
*/
3232
double stdlib_base_acoth( const double x ) {
33-
return stdlib_base_atanh( 1.0 / x );
33+
return stdlib_base_atanh( 1.0 / x );
3434
}

lib/node_modules/@stdlib/math/base/special/acovercos/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
* // returns ~1.5708
3131
*/
3232
double stdlib_base_acovercos( const double x ) {
33-
return stdlib_base_asin( 1.0 + x );
33+
return stdlib_base_asin( 1.0 + x );
3434
}

lib/node_modules/@stdlib/math/base/special/ahavercos/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
* // returns ~3.1416
3232
*/
3333
double stdlib_base_ahavercos( const double x ) {
34-
return 2.0 * stdlib_base_acos( stdlib_base_sqrt( x ) );
34+
return 2.0 * stdlib_base_acos( stdlib_base_sqrt( x ) );
3535
}

lib/node_modules/@stdlib/math/base/special/cosh/examples/c/example.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
#include <stdio.h>
2121

2222
int main( void ) {
23-
const double x[] = { -5.0, -3.89, -2.78, -1.67, -0.56, 0.56, 1.67, 2.78, 3.89, 5.0 };
23+
const double x[] = { -5.0, -3.89, -2.78, -1.67, -0.56, 0.56, 1.67, 2.78, 3.89, 5.0 };
2424

25-
double v;
26-
int i;
27-
for ( i = 0; i < 10; i++ ) {
28-
v = stdlib_base_cosh( x[ i ] );
29-
printf( "cosh(%lf) = %lf\n", x[ i ], v );
30-
}
25+
double v;
26+
int i;
27+
for ( i = 0; i < 10; i++ ) {
28+
v = stdlib_base_cosh( x[ i ] );
29+
printf( "cosh(%lf) = %lf\n", x[ i ], v );
30+
}
3131
}

0 commit comments

Comments
 (0)