Skip to content

Commit

Permalink
chore: updated main.c file
Browse files Browse the repository at this point in the history
---
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: 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
---

---
type: pre_push_report
description: Results of running various checks prior to pushing changes.
report:
  - task: run_javascript_examples
    status: na
  - task: run_c_examples
    status: na
  - task: run_cpp_examples
    status: na
  - task: run_javascript_readme_examples
    status: na
  - task: run_c_benchmarks
    status: na
  - task: run_cpp_benchmarks
    status: na
  - task: run_fortran_benchmarks
    status: na
  - task: run_javascript_benchmarks
    status: na
  - task: run_julia_benchmarks
    status: na
  - task: run_python_benchmarks
    status: na
  - task: run_r_benchmarks
    status: na
  - task: run_javascript_tests
    status: na
---
  • Loading branch information
0PrashantYadav0 committed Jan 10, 2025
1 parent d3b0c0c commit 3404629
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ extern "C" {
/**
* Computes the standard deviation of a double-precision floating-point strided array.
*/
double API_SUFFIX(stdlib_strided_dsemwd)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX );
double API_SUFFIX(stdlib_strided_dstdev)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX );

/**
* Computes the standard deviation of a double-precision floating-point strided array and alternative indexing semantics.
*/
double API_SUFFIX(stdlib_strided_dsemwd_ndarray)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
double API_SUFFIX(stdlib_strided_dstdev_ndarray)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );

#ifdef __cplusplus
}
Expand Down
3 changes: 0 additions & 3 deletions lib/node_modules/@stdlib/stats/base/dstdev/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"dependencies": [
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset",
"@stdlib/math/base/special/sqrt",
"@stdlib/stats/base/dstdevpn"
]
},
Expand All @@ -81,7 +80,6 @@
"dependencies": [
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset",
"@stdlib/math/base/special/sqrt",
"@stdlib/stats/base/dvariancewd"
]
},
Expand All @@ -99,7 +97,6 @@
"dependencies": [
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset",
"@stdlib/math/base/special/sqrt",
"@stdlib/stats/base/dstdevpn"
]
}
Expand Down
9 changes: 4 additions & 5 deletions lib/node_modules/@stdlib/stats/base/dstdev/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
*/

#include "stdlib/stats/base/dstdev.h"
#include "stdlib/stats/base/dvariancewd.h"
#include "stdlib/stats/base/dstdevpn.h"
#include "stdlib/blas/base/shared.h"
#include "stdlib/strided/base/stride2offset.h"
#include "stdlib/math/base/special/sqrt.h"

/**
* Computes the standard error of the mean for a double-precision floating-point strided array using Welford's algorithm.
* Computes the standard deviation of a double-precision floating-point strided array.
*
* @param N number of indexed elements
* @param correction degrees of freedom adjustment
Expand All @@ -37,7 +36,7 @@ double API_SUFFIX(stdlib_strided_dstdev)( const CBLAS_INT N, const double correc
}

/**
* Computes the standard error of the mean for a double-precision floating-point strided array using Welford's algorithm and alternative indexing semantics.
* Computes the standard deviation of a double-precision floating-point strided array and alternative indexing semantics.
*
* @param N number of indexed elements
* @param correction degrees of freedom adjustment
Expand All @@ -47,5 +46,5 @@ double API_SUFFIX(stdlib_strided_dstdev)( const CBLAS_INT N, const double correc
* @return output value
*/
double API_SUFFIX(stdlib_strided_dstdev_ndarray)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
return stdlib_base_sqrt( API_SUFFIX(stdlib_strided_dvariancewd_ndarray)( N, correction, X, strideX, offsetX ) / (double)N );
return API_SUFFIX(stdlib_strided_dstdevpn_ndarray)( N, correction, X, strideX, offsetX );
}

0 comments on commit 3404629

Please sign in to comment.