Skip to content

Commit 083a2c7

Browse files
committed
docs: update 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: 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: 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: 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 ---
1 parent d9bfa8a commit 083a2c7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/node_modules/@stdlib/math/base/special/cpolarf/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ var logEachMap = require( '@stdlib/console/log-each-map' );
8181
var cpolarf = require( '@stdlib/math/base/special/cpolarf' );
8282

8383
// Create an array of random numbers:
84-
var arr = new Complex64Array( uniform( 200, -100.0, 100.0 ) );
84+
var opts = {
85+
'dtype': 'float32'
86+
};
87+
var arr = new Complex64Array( uniform( 200, -100.0, 100.0, opts ) );
8588

8689
// Compute the polar form of each number in the array:
8790
logEachMap( 'cpolarf(%s) = [%s]', arr, cpolarf );

lib/node_modules/@stdlib/math/base/special/cpolarf/examples/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ var logEachMap = require( '@stdlib/console/log-each-map' );
2424
var cpolarf = require( './../lib' );
2525

2626
// Create an array of random numbers:
27-
var arr = new Complex64Array( uniform( 200, -100.0, 100.0 ) );
27+
var opts = {
28+
'dtype': 'float32'
29+
};
30+
var arr = new Complex64Array( uniform( 200, -100.0, 100.0, opts ) );
2831

2932
// Compute the polar form of each number in the array:
3033
logEachMap( 'cpolarf(%s) = [%s]', arr, cpolarf );

0 commit comments

Comments
 (0)