Skip to content
Merged
Show file tree
Hide file tree
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 @@ -47,7 +47,7 @@
* @param x - input value
* @returns result
*/
type Unary = ( x: any ) => RealOrComplex;

Check warning on line 50 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

/**
* Unary function returning a complex number.
Expand All @@ -55,7 +55,7 @@
* @param x - input value
* @returns result
*/
type WrappedUnary = ( x: any ) => ComplexLike;

Check warning on line 58 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

/**
* Binary function returning either a real or complex number.
Expand All @@ -64,7 +64,7 @@
* @param y - input value
* @returns result
*/
type Binary = ( x: any, y: any ) => RealOrComplex;

Check warning on line 67 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

Check warning on line 67 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

/**
* Binary function returning a complex number.
Expand All @@ -73,7 +73,7 @@
* @param y - input value
* @returns result
*/
type WrappedBinary = ( x: any, y: any ) => ComplexLike;

Check warning on line 76 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

Check warning on line 76 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

/**
* Ternary function returning either a real or complex number.
Expand All @@ -83,7 +83,7 @@
* @param z - input value
* @returns result
*/
type Ternary = ( x: any, y: any, z: any ) => RealOrComplex;

Check warning on line 86 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

Check warning on line 86 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

Check warning on line 86 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

/**
* Ternary function returning a complex number.
Expand All @@ -93,7 +93,7 @@
* @param z - input value
* @returns result
*/
type WrappedTernary = ( x: any, y: any, z: any ) => ComplexLike;

Check warning on line 96 in lib/node_modules/@stdlib/complex/base/cast-return/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

/**
* Quaternary function returning either a real or complex number.
Expand Down Expand Up @@ -222,7 +222,7 @@
*
* @example
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var identityf = require( '@stdlib/math/base/special/identityf' );
* var identityf = require( '@stdlib/number/float32/base/identity' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ var fcns = special;
- <span class="signature">[`hypot( x, y )`][@stdlib/math/base/special/hypot]</span><span class="delimiter">: </span><span class="description">compute the hypotenuse avoiding overflow and underflow.</span>
- <span class="signature">[`hypotf( x, y )`][@stdlib/math/base/special/hypotf]</span><span class="delimiter">: </span><span class="description">compute the hypotenuse avoiding overflow and underflow (single-precision).</span>
- <span class="signature">[`identity( x )`][@stdlib/number/float64/base/identity]</span><span class="delimiter">: </span><span class="description">evaluate the identity function of a double-precision floating-point number.</span>
- <span class="signature">[`identityf( x )`][@stdlib/math/base/special/identityf]</span><span class="delimiter">: </span><span class="description">evaluate the identity function of a single-precision floating-point number.</span>
- <span class="signature">[`identityf( x )`][@stdlib/number/float32/base/identity]</span><span class="delimiter">: </span><span class="description">evaluate the identity function of a single-precision floating-point number.</span>
- <span class="signature">[`inv( x )`][@stdlib/math/base/special/inv]</span><span class="delimiter">: </span><span class="description">compute the multiplicative inverse of a double-precision floating-point number.</span>
- <span class="signature">[`invf( x )`][@stdlib/math/base/special/invf]</span><span class="delimiter">: </span><span class="description">compute the multiplicative inverse of a single-precision floating-point number.</span>
- <span class="signature">[`kroneckerDelta( i, j )`][@stdlib/math/base/special/kronecker-delta]</span><span class="delimiter">: </span><span class="description">evaluate the Kronecker delta.</span>
Expand Down Expand Up @@ -578,7 +578,7 @@ console.log( objectKeys( special ) );

[@stdlib/number/float64/base/identity]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/number/float64/base/identity

[@stdlib/math/base/special/identityf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/identityf
[@stdlib/number/float32/base/identity]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/number/float32/base/identity

[@stdlib/math/base/special/inv]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/inv

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ int main( void ) {
## See Also

- <span class="package-name">[`@stdlib/math/base/special/cidentity`][@stdlib/math/base/special/cidentity]</span><span class="delimiter">: </span><span class="description">evaluate the identity function for a double-precision complex floating-point number.</span>
- <span class="package-name">[`@stdlib/math/base/special/identityf`][@stdlib/math/base/special/identityf]</span><span class="delimiter">: </span><span class="description">evaluate the identity function for a single-precision floating-point number.</span>
- <span class="package-name">[`@stdlib/number/float32/base/identity`][@stdlib/number/float32/base/identity]</span><span class="delimiter">: </span><span class="description">evaluate the identity function for a single-precision floating-point number.</span>

</section>

Expand All @@ -216,7 +216,7 @@ int main( void ) {

[@stdlib/math/base/special/cidentity]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cidentity

[@stdlib/math/base/special/identityf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/identityf
[@stdlib/number/float32/base/identity]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/number/float32/base/identity

<!-- </related-links> -->

Expand Down
29 changes: 0 additions & 29 deletions lib/node_modules/@stdlib/math/base/special/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ import haversin = require( '@stdlib/math/base/special/haversin' );
import heaviside = require( '@stdlib/math/base/special/heaviside' );
import hypot = require( '@stdlib/math/base/special/hypot' );
import hypotf = require( '@stdlib/math/base/special/hypotf' );
import identityf = require( '@stdlib/math/base/special/identityf' );
import inv = require( '@stdlib/math/base/special/inv' );
import invf = require( '@stdlib/math/base/special/invf' );
import kernelBetainc = require( '@stdlib/math/base/special/kernel-betainc' );
Expand Down Expand Up @@ -4653,34 +4652,6 @@ interface Namespace {
*/
hypotf: typeof hypotf;

/**
* Evaluates the identity function for single-precision floating-point number `x`.
*
* @param x - input value
* @returns input value
*
* @example
* var v = ns.identityf( -1.0 );
* // returns -1.0
*
* @example
* var v = ns.identityf( 2.0 );
* // returns 2.0
*
* @example
* var v = ns.identityf( 0.0 );
* // returns 0.0
*
* @example
* var v = ns.identityf( -0.0 );
* // returns -0.0
*
* @example
* var v = ns.identityf( NaN );
* // returns NaN
*/
identityf: typeof identityf;

/**
* Computes the multiplicative inverse of a double-precision floating-point number `x`.
*
Expand Down
67 changes: 0 additions & 67 deletions lib/node_modules/@stdlib/math/base/special/identityf/manifest.json

This file was deleted.

9 changes: 0 additions & 9 deletions lib/node_modules/@stdlib/math/base/special/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

'use strict';

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`cfloorf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`aversinf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`avercosf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`atandf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`ahaversinf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`ahavercosf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`acoversinf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`acovercosf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`acotdf` should be exported from namespace `index.js`

Check warning on line 19 in lib/node_modules/@stdlib/math/base/special/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

`acosdf` should be exported from namespace `index.js`

/*
* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.
Expand Down Expand Up @@ -1449,15 +1449,6 @@
*/
setReadOnly( special, 'hypotf', require( '@stdlib/math/base/special/hypotf' ) );

/**
* @name identityf
* @memberof special
* @readonly
* @type {Function}
* @see {@link module:@stdlib/math/base/special/identityf}
*/
setReadOnly( special, 'identityf', require( '@stdlib/math/base/special/identityf' ) );

/**
* @name inv
* @memberof special
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ base.hermitepoly,"@stdlib/math/base/tools/hermitepoly"
base.hypot,"@stdlib/math/base/special/hypot"
base.hypotf,"@stdlib/math/base/special/hypotf"
base.identity,"@stdlib/number/float64/base/identity"
base.identityf,"@stdlib/math/base/special/identityf"
base.identityf,"@stdlib/number/float32/base/identity"
base.imul,"@stdlib/number/int32/base/mul"
base.imuldw,"@stdlib/number/int32/base/muldw"
base.int2slice,"@stdlib/slice/base/int2slice"
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/lib/namespace/base/c.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ ns.push({
'type': 'Function',
'related': [
'@stdlib/math/base/special/cidentity',
'@stdlib/math/base/special/identityf'
'@stdlib/number/float32/base/identity'
]
});

Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/namespace/lib/namespace/base/i.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ ns.push({

ns.push({
'alias': 'base.identityf',
'path': '@stdlib/math/base/special/identityf',
'value': require( '@stdlib/math/base/special/identityf' ),
'path': '@stdlib/number/float32/base/identity',
'value': require( '@stdlib/number/float32/base/identity' ),
'type': 'Function',
'related': [
'@stdlib/math/base/special/identityf'
'@stdlib/number/float32/base/identity'
]
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@
"@stdlib/math/base/special/hypot",base.hypot
"@stdlib/math/base/special/hypotf",base.hypotf
"@stdlib/number/float64/base/identity",base.identity
"@stdlib/math/base/special/identityf",base.identityf
"@stdlib/number/float32/base/identity",base.identityf
"@stdlib/number/int32/base/mul",base.imul
"@stdlib/number/int32/base/muldw",base.imuldw
"@stdlib/slice/base/int2slice",base.int2slice
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/namespace/pkg2related/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"@stdlib/math/base/special/cfloor","@stdlib/math/base/special/cceil,@stdlib/math/base/special/cfloorn,@stdlib/math/base/special/cround"
"@stdlib/math/base/special/cfloorn","@stdlib/math/base/special/cceiln,@stdlib/math/base/special/cfloor,@stdlib/math/base/special/croundn"
"@stdlib/math/base/special/cidentity","@stdlib/math/base/special/cidentityf,@stdlib/number/float64/base/identity"
"@stdlib/math/base/special/cidentityf","@stdlib/math/base/special/cidentity,@stdlib/math/base/special/identityf"
"@stdlib/math/base/special/cidentityf","@stdlib/math/base/special/cidentity,@stdlib/number/float32/base/identity"
"@stdlib/math/base/special/cinv","@stdlib/complex/float64/base/div"
"@stdlib/math/base/special/clamp","@stdlib/math/base/special/clampf,@stdlib/math/base/special/wrap"
"@stdlib/math/base/special/clampf","@stdlib/math/base/special/clamp"
Expand Down Expand Up @@ -803,7 +803,7 @@
"@stdlib/math/base/special/hypot",""
"@stdlib/math/base/special/hypotf","@stdlib/math/base/special/hypot"
"@stdlib/number/float64/base/identity",""
"@stdlib/math/base/special/identityf","@stdlib/math/base/special/identityf"
"@stdlib/number/float32/base/identity","@stdlib/number/float32/base/identity"
"@stdlib/number/int32/base/mul","@stdlib/number/int32/base/muldw"
"@stdlib/number/int32/base/muldw","@stdlib/number/int32/base/mul"
"@stdlib/slice/base/int2slice","@stdlib/slice/base/seq2slice,@stdlib/slice/base/str2slice"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@
"@stdlib/math/base/special/hypot","@stdlib/math-base-special-hypot"
"@stdlib/math/base/special/hypotf","@stdlib/math-base-special-hypotf"
"@stdlib/number/float64/base/identity","@stdlib/number-float64-base-identity"
"@stdlib/math/base/special/identityf","@stdlib/math-base-special-identityf"
"@stdlib/number/float32/base/identity","@stdlib/math-base-special-identityf"
"@stdlib/number/int32/base/mul","@stdlib/number-int32-base-mul"
"@stdlib/number/int32/base/muldw","@stdlib/number-int32-base-muldw"
"@stdlib/slice/base/int2slice","@stdlib/slice-base-int2slice"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@
"@stdlib/math-base-special-hypot","@stdlib/math/base/special/hypot"
"@stdlib/math-base-special-hypotf","@stdlib/math/base/special/hypotf"
"@stdlib/number-float64-base-identity","@stdlib/number/float64/base/identity"
"@stdlib/math-base-special-identityf","@stdlib/math/base/special/identityf"
"@stdlib/math-base-special-identityf","@stdlib/number/float32/base/identity"
"@stdlib/number-int32-base-mul","@stdlib/number/int32/base/mul"
"@stdlib/number-int32-base-muldw","@stdlib/number/int32/base/muldw"
"@stdlib/slice-base-int2slice","@stdlib/slice/base/int2slice"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ f(x) = x
```

<!-- <div class="equation" align="center" data-raw-text="f(x) = x" data-equation="eq:identity_function">
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@ad4524117c3cf89854aeb12d7210102220874d31/lib/node_modules/@stdlib/math/base/special/identityf/docs/img/equation_identity_function.svg" alt="Identity function">
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@ad4524117c3cf89854aeb12d7210102220874d31/lib/node_modules/@stdlib/number/float32/base/identity/docs/img/equation_identity_function.svg" alt="Identity function">
<br>
</div> -->

Expand All @@ -50,7 +50,7 @@ for all `x`.
## Usage

```javascript
var identityf = require( '@stdlib/math/base/special/identityf' );
var identityf = require( '@stdlib/number/float32/base/identity' );
```

#### identityf( x )
Expand Down Expand Up @@ -87,7 +87,7 @@ v = identityf( NaN );
```javascript
var randu = require( '@stdlib/random/base/randu' );
var round = require( '@stdlib/math/base/special/round' );
var identityf = require( '@stdlib/math/base/special/identityf' );
var identityf = require( '@stdlib/number/float32/base/identity' );

var rand;
var i;
Expand Down Expand Up @@ -125,15 +125,15 @@ for ( i = 0; i < 100; i++ ) {
### Usage

```c
#include "stdlib/math/base/special/identityf.h"
#include "stdlib/number/float32/base/identity.h"
```

#### stdlib_base_identityf( x )
#### stdlib_base_float32_identity( x )

Evaluates the identity function for a single-precision floating-point number.

```c
float y = stdlib_base_identityf( 2.0f );
float y = stdlib_base_float32_identity( 2.0f );
// returns 2.0f
```

Expand All @@ -142,7 +142,7 @@ The function accepts the following arguments:
- **x**: `[in] float` input value.

```c
float stdlib_base_identityf( const float x );
float stdlib_base_float32_identity( const float x );
```

</section>
Expand All @@ -164,7 +164,7 @@ float stdlib_base_identityf( const float x );
### Examples

```c
#include "stdlib/math/base/special/identityf.h"
#include "stdlib/number/float32/base/identity.h"
#include <stdio.h>

int main( void ) {
Expand All @@ -173,7 +173,7 @@ int main( void ) {
float y;
int i;
for ( i = 0; i < 4; i++ ) {
y = stdlib_base_identityf( x[ i ] );
y = stdlib_base_float32_identity( x[ i ] );
printf( "f(%f) = %f\n", x[ i ], y );
}
}
Expand All @@ -195,7 +195,7 @@ int main( void ) {

## See Also

- <span class="package-name">[`@stdlib/math/base/special/identityf`][@stdlib/math/base/special/identityf]</span><span class="delimiter">: </span><span class="description">evaluate the identity function for a single-precision floating-point number.</span>
- <span class="package-name">[`@stdlib/number/float32/base/identity`][@stdlib/number/float32/base/identity]</span><span class="delimiter">: </span><span class="description">evaluate the identity function for a single-precision floating-point number.</span>

</section>

Expand All @@ -209,7 +209,7 @@ int main( void ) {

<!-- <related-links> -->

[@stdlib/math/base/special/identityf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/identityf
[@stdlib/number/float32/base/identity]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/number/float32/base/identity

<!-- </related-links> -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/math/base/special/identityf.h"
#include "stdlib/number/float32/base/identity.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down Expand Up @@ -99,7 +99,7 @@ static double benchmark( void ) {
t = tic();
for ( i = 0; i < ITERATIONS; i++ ) {
x = ( 1000.0f*rand_float() ) - 500.0f;
y = stdlib_base_identityf( x );
y = stdlib_base_float32_identity( x );
if ( y != y ) {
printf( "should not return NaN\n" );
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/math/base/special/identityf.h"
#include "stdlib/number/float32/base/identity.h"
#include <stdio.h>

int main( void ) {
Expand All @@ -25,7 +25,7 @@ int main( void ) {
float y;
int i;
for ( i = 0; i < 4; i++ ) {
y = stdlib_base_identityf( x[ i ] );
y = stdlib_base_float32_identity( x[ i ] );
printf( "f(%f) = %f\n", x[ i ], y );
}
}
Loading
Loading