Skip to content

Commit 6f36263

Browse files
feat: add C ndarray interface and refactor implementation
--- 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: ---
1 parent b6c8ddc commit 6f36263

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dsvariance

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dsvariance/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ double stdlib_strided_dsvariance( const CBLAS_INT N, const float correction, con
263263
Computes the [variance][variance] of a single-precision floating-point strided array using extended accumulation and alternative indexing semantics and returning an extended precision result.
264264

265265
```c
266-
const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 }
266+
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f }
267267

268-
double v = stdlib_strided_dsvariance_ndarray( 4, 1.0, x, 2, 0 );
268+
double v = stdlib_strided_dsvariance_ndarray( 4, 1.0f, x, 2, 0 );
269269
// returns ~6.666667
270270
```
271271

0 commit comments

Comments
 (0)