Skip to content

Commit 23d7b87

Browse files
committed
docs: update example
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent bf71563 commit 23d7b87

File tree

1 file changed

+0
-4
lines changed
  • lib/node_modules/@stdlib/ndarray/base/pop

1 file changed

+0
-4
lines changed

lib/node_modules/@stdlib/ndarray/base/pop/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Returns an array containing a truncated view of an input ndarray and a view of t
4646

4747
```javascript
4848
var ndarray = require( '@stdlib/ndarray/ctor' );
49-
var getShape = require( '@stdlib/ndarray/shape' );
5049
var ndarray2array = require( '@stdlib/ndarray/to-array' );
5150

5251
var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
@@ -57,9 +56,6 @@ var offset = 0;
5756
var x = ndarray( 'generic', buffer, shape, strides, offset, 'row-major' );
5857
// returns <ndarray>
5958

60-
var sh = getShape( x );
61-
// returns [ 3, 2 ]
62-
6359
var arr = ndarray2array( x );
6460
// returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ]
6561

0 commit comments

Comments
 (0)