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 @@ -160,7 +160,6 @@ import sfirstIndexEqual = require( './index' );
// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a Float32Array...
{
var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
var y = new Float32Array( [ 1.0, 2.0, 3.0 ] );

sfirstIndexEqual.ndarray( x.length, x, 1, 0, '1', 1, 0 ); // $ExpectError
sfirstIndexEqual.ndarray( x.length, x, 1, 0, true, 1, 0 ); // $ExpectError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ import sfirstIndexLessThan = require( './index' );
// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a Float32Array...
{
var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
var y = new Float32Array( [ 1.0, 2.0, 3.0 ] );

sfirstIndexLessThan.ndarray( x.length, x, 1, 0, '1', 1, 0 ); // $ExpectError
sfirstIndexLessThan.ndarray( x.length, x, 1, 0, true, 1, 0 ); // $ExpectError
Expand Down
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/cabs2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ var y = cabs2( new Complex128( 5.0, 3.0 ) );

## Examples

<!-- eslint-disable max-len -->

<!-- eslint no-undef: "error" -->

```javascript
Expand Down
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/cabs2f/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ var y = cabs2f( new Complex64( 5.0, 3.0 ) );

## Examples

<!-- eslint-disable max-len -->

<!-- eslint no-undef: "error" -->

```javascript
Expand Down
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/cabsf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ var y = cabsf( new Complex64( 5.0, 3.0 ) );

## Examples

<!-- eslint-disable max-len -->

<!-- eslint no-undef: "error" -->

```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"@stdlib/constants/float64/eulergamma",
"@stdlib/constants/float64/sqrt-two-pi",
"@stdlib/math/base/special/pow",
"@stdlib/math/base/special/exp"
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/nan"
]
},
{
Expand All @@ -75,7 +76,8 @@
"@stdlib/constants/float64/eulergamma",
"@stdlib/constants/float64/sqrt-two-pi",
"@stdlib/math/base/special/pow",
"@stdlib/math/base/special/exp"
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/nan"
]
},
{
Expand All @@ -101,7 +103,8 @@
"@stdlib/constants/float64/eulergamma",
"@stdlib/constants/float64/sqrt-two-pi",
"@stdlib/math/base/special/pow",
"@stdlib/math/base/special/exp"
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/nan"
]
}
]
Expand Down
7 changes: 4 additions & 3 deletions lib/node_modules/@stdlib/math/base/special/gamma/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include "stdlib/constants/float64/pi.h"
#include "stdlib/constants/float64/eulergamma.h"
#include "stdlib/constants/float64/sqrt_two_pi.h"
#include "stdlib/constants/float64/nan.h"
#include "stdlib/math/base/special/pow.h"
#include "stdlib/math/base/special/exp.h"
#include <stdint.h>
Expand Down Expand Up @@ -187,7 +188,7 @@ double stdlib_base_gamma( const double x ) {
double z;

if ( ( stdlib_base_is_integer( x ) && x < 0 ) || x == STDLIB_CONSTANT_FLOAT64_NINF || stdlib_base_is_nan( x ) ) {
return 0.0 / 0.0; // NaN
return STDLIB_CONSTANT_FLOAT64_NAN;
}
if ( x == 0.0 ) {
if ( stdlib_base_is_negative_zero( x ) ) {
Expand All @@ -207,7 +208,7 @@ double stdlib_base_gamma( const double x ) {
return stirlingApprox( x );
}
p = stdlib_base_floor( q );

// Check whether `x` is even...
i = (int32_t)p;
if ( ( i & 1 ) == 0 ) {
Expand All @@ -223,7 +224,7 @@ double stdlib_base_gamma( const double x ) {
z = q * stdlib_base_sin( STDLIB_CONSTANT_FLOAT64_PI * z );
return sign * STDLIB_CONSTANT_FLOAT64_PI / ( stdlib_base_abs( z ) * stirlingApprox( q ) );
}

// Reduce `x`...
z = 1.0;
xc = x;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ The function accepts the following arguments:

## Examples

<!-- eslint-disable max-len -->

<!-- eslint no-undef: "error" -->

```javascript
Expand Down
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/ndarray/base/output-order/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ The function accepts the following arguments:

## Examples

<!-- eslint-disable max-len -->

<!-- eslint no-undef: "error" -->

```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ where

## Examples

<!-- eslint-disable max-len -->

<!-- eslint no-undef: "error" -->

```javascript
Expand Down