Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import dcusumkbn2 = require( '@stdlib/blas/ext/base/ndarray/dcusumkbn2' );
import dcusumors = require( '@stdlib/blas/ext/base/ndarray/dcusumors' );
import dcusumpw = require( '@stdlib/blas/ext/base/ndarray/dcusumpw' );
import ddiff = require( '@stdlib/blas/ext/base/ndarray/ddiff' );
import dfillNotEqual = require( '@stdlib/blas/ext/base/ndarray/dfill-not-equal' );
import dindexOf = require( '@stdlib/blas/ext/base/ndarray/dindex-of' );
import dindexOfFalsy = require( '@stdlib/blas/ext/base/ndarray/dindex-of-falsy' );
import dlastIndexOf = require( '@stdlib/blas/ext/base/ndarray/dlast-index-of' );
Expand Down Expand Up @@ -111,6 +112,7 @@ import scusum = require( '@stdlib/blas/ext/base/ndarray/scusum' );
import scusumkbn = require( '@stdlib/blas/ext/base/ndarray/scusumkbn' );
import scusumkbn2 = require( '@stdlib/blas/ext/base/ndarray/scusumkbn2' );
import scusumors = require( '@stdlib/blas/ext/base/ndarray/scusumors' );
import sfillNotEqual = require( '@stdlib/blas/ext/base/ndarray/sfill-not-equal' );
import sindexOf = require( '@stdlib/blas/ext/base/ndarray/sindex-of' );
import slastIndexOf = require( '@stdlib/blas/ext/base/ndarray/slast-index-of' );
import slinspace = require( '@stdlib/blas/ext/base/ndarray/slinspace' );
Expand Down Expand Up @@ -768,6 +770,41 @@ interface Namespace {
*/
ddiff: typeof ddiff;

/**
* Replaces elements in a one-dimensional double-precision floating-point ndarray not equal to a provided search element with a specified scalar constant.
*
* ## Notes
*
* - The function expects the following ndarrays:
*
* - a one-dimensional input ndarray.
* - a zero-dimensional ndarray containing the search element.
* - a zero-dimensional ndarray containing the scalar constant.
*
* - When comparing elements, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct (i.e., as `NaN !== NaN` always evaluates to `true`, `NaN` elements are always replaced), and `-0` and `+0` are considered the same.
*
* @param arrays - array-like object containing ndarrays
* @returns input ndarray
*
* @example
* var Float64Vector = require( '@stdlib/ndarray/vector/float64' );
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
*
* var x = new Float64Vector( [ 0.0, -2.0, 3.0, 0.0, 4.0, -6.0 ] );
*
* var searchElement = scalar2ndarray( 0.0, {
* 'dtype': 'float64'
* });
*
* var alpha = scalar2ndarray( 5.0, {
* 'dtype': 'float64'
* });
*
* var out = ns.dfillNotEqual( [ x, searchElement, alpha ] );
* // returns <ndarray>[ 0.0, 5.0, 5.0, 0.0, 5.0, 5.0 ]
*/
dfillNotEqual: typeof dfillNotEqual;

/**
* Returns the first index of a search element in a one-dimensional double-precision floating-point ndarray.
*
Expand Down Expand Up @@ -2677,6 +2714,41 @@ interface Namespace {
*/
scusumors: typeof scusumors;

/**
* Replaces elements in a one-dimensional single-precision floating-point ndarray not equal to a provided search element with a specified scalar constant.
*
* ## Notes
*
* - The function expects the following ndarrays:
*
* - a one-dimensional input ndarray.
* - a zero-dimensional ndarray containing the search element.
* - a zero-dimensional ndarray containing the scalar constant.
*
* - When comparing elements, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct (i.e., as `NaN !== NaN` always evaluates to `true`, `NaN` elements are always replaced), and `-0` and `+0` are considered the same.
*
* @param arrays - array-like object containing ndarrays
* @returns input ndarray
*
* @example
* var Float32Vector = require( '@stdlib/ndarray/vector/float32' );
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
*
* var x = new Float32Vector( [ 0.0, -2.0, 3.0, 0.0, 4.0, -6.0 ] );
*
* var searchElement = scalar2ndarray( 0.0, {
* 'dtype': 'float32'
* });
*
* var alpha = scalar2ndarray( 5.0, {
* 'dtype': 'float32'
* });
*
* var out = ns.sfillNotEqual( [ x, searchElement, alpha ] );
* // returns <ndarray>[ 0.0, 5.0, 5.0, 0.0, 5.0, 5.0 ]
*/
sfillNotEqual: typeof sfillNotEqual;

/**
* Returns the first index of a search element in a one-dimensional single-precision floating-point ndarray.
*
Expand Down