Skip to content

Commit a7bba71

Browse files
committed
style: fix 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: passed - 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: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 65ac870 commit a7bba71

5 files changed

Lines changed: 125 additions & 125 deletions

File tree

lib/node_modules/@stdlib/stats/base/ndarray/dmaxabs/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
*/
3030
double stdlib_stats_dmaxabs( const struct ndarray *arrays[] ) {
3131
const struct ndarray *x = arrays[ 0 ];
32-
return API_SUFFIX(stdlib_strided_dmaxabs_ndarray)( stdlib_ndarray_dimension( x, 0 ), (const double *)stdlib_ndarray_data( x ), stdlib_ndarray_stride_elements( x, 0 ), stdlib_ndarray_offset_elements( x ) );
32+
return API_SUFFIX(stdlib_strided_dmaxabs_ndarray)( stdlib_ndarray_dimension( x, 0 ), (const double *)stdlib_ndarray_data( x ), stdlib_ndarray_stride_elements( x, 0 ), stdlib_ndarray_offset_elements( x ) );
3333
}

lib/node_modules/@stdlib/stats/base/ndarray/dmin/README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -188,49 +188,49 @@ double stdlib_stats_dmin( const struct ndarray *arrays[] );
188188
#include <stdio.h>
189189

190190
int main( void ) {
191-
// Create a data buffer:
192-
const double data[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
191+
// Create a data buffer:
192+
const double data[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
193193

194-
// Specify the number of array dimensions:
195-
const int64_t ndims = 1;
194+
// Specify the number of array dimensions:
195+
const int64_t ndims = 1;
196196

197-
// Specify the array shape:
198-
int64_t shape[] = { 4 };
197+
// Specify the array shape:
198+
int64_t shape[] = { 4 };
199199

200-
// Specify the array strides:
201-
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT };
200+
// Specify the array strides:
201+
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT };
202202

203-
// Specify the byte offset:
204-
const int64_t offset = 0;
203+
// Specify the byte offset:
204+
const int64_t offset = 0;
205205

206-
// Specify the array order:
207-
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
206+
// Specify the array order:
207+
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
208208

209-
// Specify the index mode:
210-
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
209+
// Specify the index mode:
210+
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
211211

212-
// Specify the subscript index modes:
213-
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214-
const int64_t nsubmodes = 1;
212+
// Specify the subscript index modes:
213+
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214+
const int64_t nsubmodes = 1;
215215

216-
// Create an ndarray:
217-
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218-
if ( x == NULL ) {
219-
fprintf( stderr, "Error allocating memory.\n" );
220-
exit( 1 );
221-
}
216+
// Create an ndarray:
217+
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218+
if ( x == NULL ) {
219+
fprintf( stderr, "Error allocating memory.\n" );
220+
exit( 1 );
221+
}
222222

223-
// Define a list of ndarrays:
224-
const struct ndarray *arrays[] = { x };
223+
// Define a list of ndarrays:
224+
const struct ndarray *arrays[] = { x };
225225

226-
// Compute the minimum value:
227-
double v = stdlib_stats_dmin( arrays );
226+
// Compute the minimum value:
227+
double v = stdlib_stats_dmin( arrays );
228228

229-
// Print the result:
230-
printf( "min: %lf\n", v );
229+
// Print the result:
230+
printf( "min: %lf\n", v );
231231

232-
// Free allocated memory:
233-
stdlib_ndarray_free( x );
232+
// Free allocated memory:
233+
stdlib_ndarray_free( x );
234234
}
235235
```
236236

lib/node_modules/@stdlib/stats/base/ndarray/dminabs/README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -188,49 +188,49 @@ double stdlib_stats_dminabs( const struct ndarray *arrays[] );
188188
#include <stdio.h>
189189

190190
int main( void ) {
191-
// Create a data buffer:
192-
const double data[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
191+
// Create a data buffer:
192+
const double data[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
193193

194-
// Specify the number of array dimensions:
195-
const int64_t ndims = 1;
194+
// Specify the number of array dimensions:
195+
const int64_t ndims = 1;
196196

197-
// Specify the array shape:
198-
int64_t shape[] = { 4 };
197+
// Specify the array shape:
198+
int64_t shape[] = { 4 };
199199

200-
// Specify the array strides:
201-
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT };
200+
// Specify the array strides:
201+
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT };
202202

203-
// Specify the byte offset:
204-
const int64_t offset = 0;
203+
// Specify the byte offset:
204+
const int64_t offset = 0;
205205

206-
// Specify the array order:
207-
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
206+
// Specify the array order:
207+
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
208208

209-
// Specify the index mode:
210-
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
209+
// Specify the index mode:
210+
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
211211

212-
// Specify the subscript index modes:
213-
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214-
const int64_t nsubmodes = 1;
212+
// Specify the subscript index modes:
213+
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214+
const int64_t nsubmodes = 1;
215215

216-
// Create an ndarray:
217-
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218-
if ( x == NULL ) {
219-
fprintf( stderr, "Error allocating memory.\n" );
220-
exit( 1 );
221-
}
216+
// Create an ndarray:
217+
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218+
if ( x == NULL ) {
219+
fprintf( stderr, "Error allocating memory.\n" );
220+
exit( 1 );
221+
}
222222

223-
// Define a list of ndarrays:
224-
const struct ndarray *arrays[] = { x };
223+
// Define a list of ndarrays:
224+
const struct ndarray *arrays[] = { x };
225225

226-
// Compute the minimum absolute value:
227-
double v = stdlib_stats_dminabs( arrays );
226+
// Compute the minimum absolute value:
227+
double v = stdlib_stats_dminabs( arrays );
228228

229-
// Print the result:
230-
printf( "min: %lf\n", v );
229+
// Print the result:
230+
printf( "minabs: %lf\n", v );
231231

232-
// Free allocated memory:
233-
stdlib_ndarray_free( x );
232+
// Free allocated memory:
233+
stdlib_ndarray_free( x );
234234
}
235235
```
236236

lib/node_modules/@stdlib/stats/base/ndarray/smax/README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -188,49 +188,49 @@ float stdlib_stats_smax( const struct ndarray *arrays[] );
188188
#include <stdio.h>
189189

190190
int main( void ) {
191-
// Create a data buffer:
192-
const float data[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };
191+
// Create a data buffer:
192+
const float data[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };
193193

194-
// Specify the number of array dimensions:
195-
const int64_t ndims = 1;
194+
// Specify the number of array dimensions:
195+
const int64_t ndims = 1;
196196

197-
// Specify the array shape:
198-
int64_t shape[] = { 4 };
197+
// Specify the array shape:
198+
int64_t shape[] = { 4 };
199199

200-
// Specify the array strides:
201-
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
200+
// Specify the array strides:
201+
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
202202

203-
// Specify the byte offset:
204-
const int64_t offset = 0;
203+
// Specify the byte offset:
204+
const int64_t offset = 0;
205205

206-
// Specify the array order:
207-
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
206+
// Specify the array order:
207+
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
208208

209-
// Specify the index mode:
210-
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
209+
// Specify the index mode:
210+
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
211211

212-
// Specify the subscript index modes:
213-
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214-
const int64_t nsubmodes = 1;
212+
// Specify the subscript index modes:
213+
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214+
const int64_t nsubmodes = 1;
215215

216-
// Create an ndarray:
217-
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218-
if ( x == NULL ) {
219-
fprintf( stderr, "Error allocating memory.\n" );
220-
exit( 1 );
221-
}
216+
// Create an ndarray:
217+
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218+
if ( x == NULL ) {
219+
fprintf( stderr, "Error allocating memory.\n" );
220+
exit( 1 );
221+
}
222222

223-
// Define a list of ndarrays:
224-
const struct ndarray *arrays[] = { x };
223+
// Define a list of ndarrays:
224+
const struct ndarray *arrays[] = { x };
225225

226-
// Compute the maximum value:
227-
float v = stdlib_stats_smax( arrays );
226+
// Compute the maximum value:
227+
float v = stdlib_stats_smax( arrays );
228228

229-
// Print the result:
230-
printf( "max: %f\n", v );
229+
// Print the result:
230+
printf( "max: %f\n", v );
231231

232-
// Free allocated memory:
233-
stdlib_ndarray_free( x );
232+
// Free allocated memory:
233+
stdlib_ndarray_free( x );
234234
}
235235
```
236236

lib/node_modules/@stdlib/stats/base/ndarray/smin/README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -188,49 +188,49 @@ float stdlib_stats_smin( const struct ndarray *arrays[] );
188188
#include <stdio.h>
189189

190190
int main( void ) {
191-
// Create a data buffer:
192-
const float data[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };
191+
// Create a data buffer:
192+
const float data[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };
193193

194-
// Specify the number of array dimensions:
195-
const int64_t ndims = 1;
194+
// Specify the number of array dimensions:
195+
const int64_t ndims = 1;
196196

197-
// Specify the array shape:
198-
int64_t shape[] = { 4 };
197+
// Specify the array shape:
198+
int64_t shape[] = { 4 };
199199

200-
// Specify the array strides:
201-
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
200+
// Specify the array strides:
201+
int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT };
202202

203-
// Specify the byte offset:
204-
const int64_t offset = 0;
203+
// Specify the byte offset:
204+
const int64_t offset = 0;
205205

206-
// Specify the array order:
207-
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
206+
// Specify the array order:
207+
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
208208

209-
// Specify the index mode:
210-
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
209+
// Specify the index mode:
210+
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
211211

212-
// Specify the subscript index modes:
213-
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214-
const int64_t nsubmodes = 1;
212+
// Specify the subscript index modes:
213+
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
214+
const int64_t nsubmodes = 1;
215215

216-
// Create an ndarray:
217-
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218-
if ( x == NULL ) {
219-
fprintf( stderr, "Error allocating memory.\n" );
220-
exit( 1 );
221-
}
216+
// Create an ndarray:
217+
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT32, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
218+
if ( x == NULL ) {
219+
fprintf( stderr, "Error allocating memory.\n" );
220+
exit( 1 );
221+
}
222222

223-
// Define a list of ndarrays:
224-
const struct ndarray *arrays[] = { x };
223+
// Define a list of ndarrays:
224+
const struct ndarray *arrays[] = { x };
225225

226-
// Compute the minimum value:
227-
float v = stdlib_stats_smin( arrays );
226+
// Compute the minimum value:
227+
float v = stdlib_stats_smin( arrays );
228228

229-
// Print the result:
230-
printf( "min: %f\n", v );
229+
// Print the result:
230+
printf( "min: %f\n", v );
231231

232-
// Free allocated memory:
233-
stdlib_ndarray_free( x );
232+
// Free allocated memory:
233+
stdlib_ndarray_free( x );
234234
}
235235
```
236236

0 commit comments

Comments
 (0)