From e5ffe7053dcbe211bebcf2195fa89a4fb430d77c Mon Sep 17 00:00:00 2001 From: aayush0325 Date: Mon, 30 Dec 2024 03:46:00 +0000 Subject: [PATCH] docs: fix errors in examples and docs --- 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: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/stats/base/dmin/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dmin/README.md b/lib/node_modules/@stdlib/stats/base/dmin/README.md index 8d235fa62f56..01eb2ff975ad 100644 --- a/lib/node_modules/@stdlib/stats/base/dmin/README.md +++ b/lib/node_modules/@stdlib/stats/base/dmin/README.md @@ -95,7 +95,7 @@ var v = dmin.ndarray( x.length, x, 1, 0 ); The function has the following additional parameters: -- **offset**: starting index for `x`. +- **offsetX**: starting index for `x`. While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to calculate the minimum value for every other element in `x` starting from the second element @@ -160,7 +160,7 @@ console.log( v ); Computes the minimum value of a double-precision floating-point strided array. ```c -const double x[] = { 1.0, -2.0, 2 }; +const double x[] = { 1.0, -2.0, 2.0 }; double v = stdlib_strided_dmin( 3, x, 2 ); // returns -2.0 @@ -181,7 +181,7 @@ double stdlib_strided_dmin( const CBLAS_INT N, const double *X, const CBLAS_INT Computes the minimum value of a double-precision floating-point strided array using alternative indexing semantics. ```c -const double x[] = { 1.0, -2.0, 2 }; +const double x[] = { 1.0, -2.0, 2.0 }; double v = stdlib_strided_dmin_ndarray( 3, x, 2, 0 ); // returns -2.0 @@ -229,10 +229,10 @@ int main( void ) { const int N = 4; // Specify the stride length: - const int stride = 2; + const int strideX = 2; // Compute the minimum value: - double v = stdlib_strided_dmin( N, x, stride ); + double v = stdlib_strided_dmin( N, x, strideX ); // Print the result: printf( "min: %lf\n", v );