Skip to content

Commit 7de6ac9

Browse files
committed
fix: examples
--- 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: passed - 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: missing_dependencies - 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 ---
1 parent b750a72 commit 7de6ac9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/node_modules/@stdlib/stats/base/sdsnanmean/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
int main( void ) {
2323
// Create a strided array:
24-
const float x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 };
24+
const float x[] = { 1.0f, 2.0f, 0.0f/0.0f, 3.0f, 0.0f/0.0f, 4.0f, 5.0f, 6.0f, 0.0f/0.0f, 7.0f, 8.0f, 0.0f/0.0f };
2525

2626
// Specify the number of elements:
2727
const int N = 6;

lib/node_modules/@stdlib/stats/base/sdsnanmean/examples/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ function rand() {
2929
}
3030
return uniform( -50.0, 50.0 );
3131
}
32+
3233
var x = filledarrayBy( 10, 'float32', rand );
34+
console.log( x );
3335

3436
var v = sdsnanmean( x.length, x, 1 );
3537
console.log( v );

0 commit comments

Comments
 (0)