diff --git a/lib/node_modules/@stdlib/ndarray/with/README.md b/lib/node_modules/@stdlib/ndarray/with/README.md index 323d75611679..f25aea958a7b 100644 --- a/lib/node_modules/@stdlib/ndarray/with/README.md +++ b/lib/node_modules/@stdlib/ndarray/with/README.md @@ -53,10 +53,7 @@ var x = zeros( [ 2, 2 ], { // returns var out = ndarrayWith( x, [ 0, 0 ], 1.0 ); -// returns - -var v = out.get( 0, 0 ); -// returns 1.0 +// returns [ [ 1, 0 ], [ 0, 0 ] ] ``` The function accepts the following arguments: diff --git a/lib/node_modules/@stdlib/ndarray/with/docs/repl.txt b/lib/node_modules/@stdlib/ndarray/with/docs/repl.txt index b150afdae620..d6924840b942 100644 --- a/lib/node_modules/@stdlib/ndarray/with/docs/repl.txt +++ b/lib/node_modules/@stdlib/ndarray/with/docs/repl.txt @@ -22,9 +22,8 @@ Examples -------- > var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] ); - > var out = {{alias}}( x, [ 0, 0 ], 5 ); - > var v = out.get( 0, 0 ) - 5 + > var out = {{alias}}( x, [ 0, 0 ], 5 ) + [ [ 5, 2 ], [ 3, 4 ] ] See Also -------- diff --git a/lib/node_modules/@stdlib/ndarray/with/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/with/docs/types/index.d.ts index dbb5485f685c..ee6298bb9ad9 100644 --- a/lib/node_modules/@stdlib/ndarray/with/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/with/docs/types/index.d.ts @@ -42,10 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray'; * var x = ndarray( 'generic', buffer, shape, strides, offset, order ); * * var out = ndarrayWith( x, [ 0, 0 ], 5 ); -* // returns -* -* var v = out.get( 0, 0 ); -* // returns 5 +* // returns [ [ 5, 2 ], [ 3, 4 ] ] */ declare function ndarrayWith = typedndarray>( x: typedndarray, indices: Array, value: T ): U; diff --git a/lib/node_modules/@stdlib/ndarray/with/lib/index.js b/lib/node_modules/@stdlib/ndarray/with/lib/index.js index 308b608a819e..1a508ec879ee 100644 --- a/lib/node_modules/@stdlib/ndarray/with/lib/index.js +++ b/lib/node_modules/@stdlib/ndarray/with/lib/index.js @@ -37,10 +37,7 @@ * // returns * * var out = ndarrayWith( x, [ 0, 0 ], 5 ); -* // returns -* -* var v = out.get( 0, 0 ); -* // returns 5 +* // returns [ [ 5, 2 ], [ 3, 4 ] ] */ // MODULES // diff --git a/lib/node_modules/@stdlib/ndarray/with/lib/main.js b/lib/node_modules/@stdlib/ndarray/with/lib/main.js index dae26435a0fb..15e48eb0d75f 100644 --- a/lib/node_modules/@stdlib/ndarray/with/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/with/lib/main.js @@ -58,10 +58,7 @@ var format = require( '@stdlib/string/format' ); * var x = ndarray( 'generic', buffer, shape, strides, offset, order ); * * var out = ndarrayWith( x, [ 0, 0 ], 5 ); -* // returns -* -* var v = out.get( 0, 0 ); -* // returns 5 +* // returns [ [ 5, 2 ], [ 3, 4 ] ] */ function ndarrayWith( x, indices, value ) { var args;