Skip to content

Commit

Permalink
feat: add nditerRows and nditerColumns to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Oct 1, 2023
1 parent 9c23309 commit de48915
Show file tree
Hide file tree
Showing 27 changed files with 59 additions and 15 deletions.
2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@ ndarraySafeCasts,"@stdlib/ndarray/safe-casts"
ndarraySameKindCasts,"@stdlib/ndarray/same-kind-casts"
ndempty,"@stdlib/ndarray/empty"
ndemptyLike,"@stdlib/ndarray/empty-like"
nditerColumns,"@stdlib/ndarray/iter/columns"
nditerRows,"@stdlib/ndarray/iter/rows"
ndslice,"@stdlib/ndarray/slice"
ndsliceAssign,"@stdlib/ndarray/slice-assign"
ndzeros,"@stdlib/ndarray/zeros"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@ ndarraySafeCasts,"ndarrayCastingModes,ndarrayDataTypes,ndarraySameKindCasts"
ndarraySameKindCasts,"ndarrayCastingModes,ndarrayDataTypes,ndarraySafeCasts"
ndempty,"ndemptyLike,ndzeros"
ndemptyLike,"ndempty,ndzerosLike"
nditerColumns,"nditerRows,ndslice"
nditerRows,"nditerColumns,ndslice"
ndslice,"array,ndarray,ndsliceAssign"
ndsliceAssign,"array,ndarray,ndslice"
ndzeros,"ndempty,ndzerosLike"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@ ndarraySafeCasts,"@stdlib/ndarray-safe-casts"
ndarraySameKindCasts,"@stdlib/ndarray-same-kind-casts"
ndempty,"@stdlib/ndarray-empty"
ndemptyLike,"@stdlib/ndarray-empty-like"
nditerColumns,"@stdlib/ndarray-iter-columns"
nditerRows,"@stdlib/ndarray-iter-rows"
ndslice,"@stdlib/ndarray-slice"
ndsliceAssign,"@stdlib/ndarray-slice-assign"
ndzeros,"@stdlib/ndarray-zeros"
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/aliases/data/data.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/namespace/aliases/data/data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@ ndarraySafeCasts
ndarraySameKindCasts
ndempty
ndemptyLike
nditerColumns
nditerRows
ndslice
ndsliceAssign
ndzeros
Expand Down
22 changes: 22 additions & 0 deletions lib/node_modules/@stdlib/namespace/lib/namespace/n.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,28 @@ ns.push({
]
});

ns.push({
'alias': 'nditerColumns',
'path': '@stdlib/ndarray/iter/columns',
'value': require( '@stdlib/ndarray/iter/columns' ),
'type': 'Function',
'related': [
'@stdlib/ndarray/iter/rows',
'@stdlib/ndarray/slice'
]
});

ns.push({
'alias': 'nditerRows',
'path': '@stdlib/ndarray/iter/rows',
'value': require( '@stdlib/ndarray/iter/rows' ),
'type': 'Function',
'related': [
'@stdlib/ndarray/iter/columns',
'@stdlib/ndarray/slice'
]
});

ns.push({
'alias': 'ndslice',
'path': '@stdlib/ndarray/slice',
Expand Down
2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@
"@stdlib/ndarray/same-kind-casts",ndarraySameKindCasts
"@stdlib/ndarray/empty",ndempty
"@stdlib/ndarray/empty-like",ndemptyLike
"@stdlib/ndarray/iter/columns",nditerColumns
"@stdlib/ndarray/iter/rows",nditerRows
"@stdlib/ndarray/slice",ndslice
"@stdlib/ndarray/slice-assign",ndsliceAssign
"@stdlib/ndarray/zeros",ndzeros
Expand Down

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/node_modules/@stdlib/namespace/pkg2related/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@
"@stdlib/ndarray/same-kind-casts","@stdlib/ndarray/casting-modes,@stdlib/ndarray/dtypes,@stdlib/ndarray/safe-casts"
"@stdlib/ndarray/empty","@stdlib/ndarray/empty-like,@stdlib/ndarray/zeros"
"@stdlib/ndarray/empty-like","@stdlib/ndarray/empty,@stdlib/ndarray/zeros-like"
"@stdlib/ndarray/iter/columns","@stdlib/ndarray/iter/rows,@stdlib/ndarray/slice"
"@stdlib/ndarray/iter/rows","@stdlib/ndarray/iter/columns,@stdlib/ndarray/slice"
"@stdlib/ndarray/slice","@stdlib/ndarray/array,@stdlib/ndarray/ctor,@stdlib/ndarray/slice-assign"
"@stdlib/ndarray/slice-assign","@stdlib/ndarray/array,@stdlib/ndarray/ctor,@stdlib/ndarray/slice"
"@stdlib/ndarray/zeros","@stdlib/ndarray/empty,@stdlib/ndarray/zeros-like"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@
"@stdlib/ndarray/same-kind-casts","@stdlib/ndarray-same-kind-casts"
"@stdlib/ndarray/empty","@stdlib/ndarray-empty"
"@stdlib/ndarray/empty-like","@stdlib/ndarray-empty-like"
"@stdlib/ndarray/iter/columns","@stdlib/ndarray-iter-columns"
"@stdlib/ndarray/iter/rows","@stdlib/ndarray-iter-rows"
"@stdlib/ndarray/slice","@stdlib/ndarray-slice"
"@stdlib/ndarray/slice-assign","@stdlib/ndarray-slice-assign"
"@stdlib/ndarray/zeros","@stdlib/ndarray-zeros"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,8 @@
"@stdlib/ndarray-same-kind-casts","@stdlib/ndarray/same-kind-casts"
"@stdlib/ndarray-empty","@stdlib/ndarray/empty"
"@stdlib/ndarray-empty-like","@stdlib/ndarray/empty-like"
"@stdlib/ndarray-iter-columns","@stdlib/ndarray/iter/columns"
"@stdlib/ndarray-iter-rows","@stdlib/ndarray/iter/rows"
"@stdlib/ndarray-slice","@stdlib/ndarray/slice"
"@stdlib/ndarray-slice-assign","@stdlib/ndarray/slice-assign"
"@stdlib/ndarray-zeros","@stdlib/ndarray/zeros"
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3678,6 +3678,7 @@ ndarraySameKindCasts,"var out = ndarraySameKindCasts( 'float32' )\n"
ndempty,"var arr = ndempty( [ 2, 2 ] )\nvar sh = arr.shape\nvar dt = arr.dtype\n"
ndemptyLike,"var x = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\nvar sh = x.shape\nvar dt = x.dtype\nvar y = ndemptyLike( x )\nsh = y.shape\ndt = y.dtype\n"
ndslice,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nx.shape\nvar s = new MultiSlice( null, 1 )\nvar y = ndslice( x, s )\ny.shape\nndarray2array( y )\n"
ndsliceAssign,"var y = ndzeros( [ 2, 2 ] )\nvar x = scalar2ndarray( 3.0 )\nvar s = new MultiSlice( null, 1 )\nvar out = ndsliceAssign( x, y, s )\nvar bool = ( out === y )\nndarray2array( y )\n"
ndzeros,"var arr = ndzeros( [ 2, 2 ] )\nvar sh = arr.shape\nvar dt = arr.dtype\n"
ndzerosLike,"var x = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\nvar sh = x.shape\nvar dt = x.dtype\nvar y = ndzerosLike( x )\nsh = y.shape\ndt = y.dtype\n"
nextGraphemeClusterBreak,"var out = nextGraphemeClusterBreak( 'last man standing', 4 )\nout = nextGraphemeClusterBreak( 'presidential election', 8 )\nout = nextGraphemeClusterBreak( 'अनुच्छेद', 1 )\nout = nextGraphemeClusterBreak( '🌷' )\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions lib/node_modules/@stdlib/repl/help/data/data.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/help/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/info/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3678,6 +3678,7 @@ ndarraySameKindCasts,"\nndarraySameKindCasts( [dtype:any] )\n Returns a list
ndempty,"\nndempty( shape:ArrayLikeObject<integer>|integer[, options:Object] )\n Returns an uninitialized ndarray having a specified shape and data type.\n"
ndemptyLike,"\nndemptyLike( x:ndarray[, options:Object] )\n Returns an uninitialized ndarray having the same shape and data type as a\n provided input ndarray.\n"
ndslice,"\nndslice( x:ndarray, ...s:MultiSlice|Slice|null|undefined|integer|ArrayLike[, \n options:Object] )\n Returns a read-only view of an input ndarray.\n"
ndsliceAssign,"\nndsliceAssign( x:ndarray, y:ndarray, \n ...s:MultiSlice|Slice|null|undefined|integer|ArrayLike[, options:Object] )\n Assigns element values from a broadcasted input ndarray to corresponding\n elements in an output ndarray view.\n"
ndzeros,"\nndzeros( shape:ArrayLikeObject<integer>|integer[, options:Object] )\n Returns a zero-filled ndarray having a specified shape and data type.\n"
ndzerosLike,"\nndzerosLike( x:ndarray[, options:Object] )\n Returns a zero-filled ndarray having the same shape and data type as a\n provided input ndarray.\n"
nextGraphemeClusterBreak,"\nnextGraphemeClusterBreak( str:string[, fromIndex:integer] )\n Returns the next extended grapheme cluster break in a string after a\n specified position.\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/info/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/signature/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3715,6 +3715,7 @@ ndarraySameKindCasts,"ndarraySameKindCasts( [dtype] )"
ndempty,"ndempty( shape[, options] )"
ndemptyLike,"ndemptyLike( x[, options] )"
ndslice,"ndslice( x, ...s[, options] )"
ndsliceAssign,"ndsliceAssign( x, y, ...s[, options] )"
ndzeros,"ndzeros( shape[, options] )"
ndzerosLike,"ndzerosLike( x[, options] )"
nextGraphemeClusterBreak,"nextGraphemeClusterBreak( str[, fromIndex] )"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/signature/data/data.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3715,6 +3715,7 @@ ndarraySameKindCasts,"ndarraySameKindCasts( [dtype:any] )"
ndempty,"ndempty( shape:ArrayLikeObject<integer>|integer[, options:Object] )"
ndemptyLike,"ndemptyLike( x:ndarray[, options:Object] )"
ndslice,"ndslice( x:ndarray, ...s:MultiSlice|Slice|null|undefined|integer|ArrayLike[, options:Object] )"
ndsliceAssign,"ndsliceAssign( x:ndarray, y:ndarray, ...s:MultiSlice|Slice|null|undefined|integer|ArrayLike[, options:Object] )"
ndzeros,"ndzeros( shape:ArrayLikeObject<integer>|integer[, options:Object] )"
ndzerosLike,"ndzerosLike( x:ndarray[, options:Object] )"
nextGraphemeClusterBreak,"nextGraphemeClusterBreak( str:string[, fromIndex:integer] )"
Expand Down

Large diffs are not rendered by default.

1 comment on commit de48915

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
namespace/alias2pkg $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/alias2related $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/alias2standalone $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/aliases $\color{green}144/144$
$\color{green}+100.00\%$
$\color{green}14/14$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}144/144$
$\color{green}+100.00\%$
namespace $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}4/4$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/pkg2alias $\color{green}100/100$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}100/100$
$\color{green}+100.00\%$
namespace/pkg2related $\color{green}100/100$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}100/100$
$\color{green}+100.00\%$
namespace/pkg2standalone $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/standalone2pkg $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
ndarray/iter/columns $\color{green}307/307$
$\color{green}+100.00\%$
$\color{green}29/29$
$\color{green}+100.00\%$
$\color{green}5/5$
$\color{green}+100.00\%$
$\color{green}307/307$
$\color{green}+100.00\%$
ndarray/iter $\color{green}60/60$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}0/0$
$\color{green}+100.00\%$
$\color{green}60/60$
$\color{green}+100.00\%$
repl/code-blocks $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
repl/help $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
repl/info $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
repl/signature $\color{green}99/99$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}99/99$
$\color{green}+100.00\%$
repl/typed-signature $\color{green}99/99$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}99/99$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.